Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
Duduplicate merged qnode ids
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkwang committed Aug 17, 2021
1 parent ce9c92b commit c2a30ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trapi_throttle/throttle.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ async def process_batch(
if "ids" not in node:
node["ids"] = []
node["ids"].extend(node_curies)
for qnode in merged_request_value["message"]["query_graph"]["nodes"].values():
if qnode.get("ids"):
qnode["ids"] = list(set(qnode["ids"]))

response_values = dict()
try:
Expand Down

0 comments on commit c2a30ef

Please sign in to comment.