Skip to content

Commit

Permalink
Merge pull request #103 from ranking-agent/sort
Browse files Browse the repository at this point in the history
sort results
  • Loading branch information
cbizon authored Aug 3, 2022
2 parents 6e847ee + 648fc8a commit a35fa2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openapi-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ servers:
# url: http://127.0.0.1:5000
termsOfService: http://robokop.renci.org:7055/tos?service_long=ARAGORN&provider_long=RENCI
title: ARAGORN
version: 2.0.27
version: 2.0.28
tags:
- name: translator
- name: ARA
Expand Down
4 changes: 3 additions & 1 deletion src/service_aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ async def entry(message, guid, coalesce_type, caller) -> (dict, int):
workflow_def = [{'id': 'lookup'},
{'id': 'overlay_connect_knodes'},
{'id': 'score'},
{'id': 'sort_results_score'},
{'id': 'filter_message_top_n', 'parameters': {'max_results': 5000}}]
else:
#TODO: if this is robokop, need to normalize.
Expand Down Expand Up @@ -584,7 +585,8 @@ async def answercoalesce(message, params, guid, coalesce_type='all') -> (dict, i
:param coalesce_type:
:return:
"""
url = f'{os.environ.get("ANSWER_COALESCE_URL", "https://answercoalesce-dev.apps.renci.org/1.2/coalesce/")}{coalesce_type}'
#url = f'{os.environ.get("ANSWER_COALESCE_URL", "https://answercoalesce-dev.apps.renci.org/1.2/coalesce/")}{coalesce_type}'
url = f'{os.environ.get("ANSWER_COALESCE_URL", "https://answer-coalesce.transltr.io/1.2/coalesce/")}{coalesce_type}'

with open('crap.json','w') as outf:
json.dump(message,outf)
Expand Down

0 comments on commit a35fa2f

Please sign in to comment.