Skip to content

Commit

Permalink
#155: Prevent internal ICAT exceptions from occurring
Browse files Browse the repository at this point in the history
- Bug introduced when I implemented the WHERE filter
  • Loading branch information
MRichards99 committed Aug 13, 2020
1 parent 0f67fc7 commit a22e8f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/icat/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def get_entity_by_id(client, table_name, id, return_json_formattable_data):
"""

# Set query condition for the selected ID
id_condition = create_condition("id", "=", [id])
id_condition = create_condition("id", "=", id)

selected_entity_name = get_python_icat_entity_name(client, table_name)

Expand Down

0 comments on commit a22e8f4

Please sign in to comment.