From a22e8f4ed14663c2e0d45e0a2305f3887eadb81b Mon Sep 17 00:00:00 2001 From: Matthew Richards Date: Thu, 13 Aug 2020 12:47:12 +0000 Subject: [PATCH] #155: Prevent internal ICAT exceptions from occurring - Bug introduced when I implemented the WHERE filter --- common/icat/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/icat/helpers.py b/common/icat/helpers.py index c547b553..79a6b4be 100644 --- a/common/icat/helpers.py +++ b/common/icat/helpers.py @@ -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)