Skip to content

Commit

Permalink
fixing cases where query_id=null for no reason
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDietzMorris committed Dec 20, 2023
1 parent b1f5511 commit 380a22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PLATER/services/util/question.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def transform_attributes(self, trapi_message, graph_interface: GraphInterface):
for node_binding_list in r["node_bindings"].values():
for node_binding in node_binding_list:
query_id = node_binding.pop('query_id', None)
if query_id != node_binding['id']:
if query_id != node_binding['id'] and query_id is not None:
node_binding['query_id'] = query_id
# add resource id
for analyses in r["analyses"]:
Expand Down

0 comments on commit 380a22f

Please sign in to comment.