Skip to content

Commit

Permalink
#145: Add docstring for ICAT PATCH helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Oct 5, 2020
1 parent 2970dde commit b33de8a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion common/icat/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,16 @@ def get_first_result_with_filters(client, table_name, filters):

def update_entities(client, table_name, data_to_update):
"""
TODO - Add docstring
Update one or more results for the given entity using the JSON provided in
`data_to_update`
:param client: ICAT client containing an authenticated user
:type client: :class:`icat.client.Client`
:param table_name: Table name to extract which entity to use
:type table_name: :class:`str`
:param data_to_update: The list of filters to be applied to the request
:type data_to_update: :class:`list` or :class:`dict`
:return: The updated record(s) of the given entity
"""

updated_data = []
Expand Down

0 comments on commit b33de8a

Please sign in to comment.