Skip to content

Commit

Permalink
Merge pull request #708 from NCATSTranslator/permisive_timeout
Browse files Browse the repository at this point in the history
changed edge num for pathfinder queries
  • Loading branch information
ShervinAbd92 authored Nov 13, 2024
2 parents 0fd2091 + 8eda620 commit 80444ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tr_sys/tr_ars/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def submit(req):
# derive query_type
node_count=len(data['message']['query_graph']['nodes'].keys())
edge_count=len(data['message']['query_graph']['edges'].keys())
if node_count==3 and edge_count==2:
if node_count==3 and edge_count==3:
params = {"query_type":"pathfinder"}
if node_count==2 and edge_count==1:
else:
params = {"query_type":"standard"}
# if 'message' not in data:
# return HttpResponse('Not a valid Translator query json', status=400)
Expand Down

0 comments on commit 80444ba

Please sign in to comment.