Skip to content

Commit

Permalink
better standard query type handling
Browse files Browse the repository at this point in the history
  • Loading branch information
abdollahis2 authored and abdollahis2 committed Nov 13, 2024
1 parent 86f25dd commit 8eda620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tr_sys/tr_ars/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def submit(req):
edge_count=len(data['message']['query_graph']['edges'].keys())
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 8eda620

Please sign in to comment.