Skip to content

Commit

Permalink
Merge pull request #233 from TranslatorSRI/remove-hardcoded-trapi-ver…
Browse files Browse the repository at this point in the history
…sion

This PR removes references to TRAPI 1.3 and replaces a hardcoded reference to TRAPI 1.4 with the value of the TRAPI_VERSION environmental variable.

Closes #215.
  • Loading branch information
gaurav authored Dec 7, 2023
2 parents 371e41f + 6cbcd25 commit 73360e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion node_normalizer/apidocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def construct_open_api_schema(app) -> Dict[str, str]:
if 'servers' in api_docs:
for s in api_docs['servers']:
# override if server root env var is provided
s['url'] = server_root + '1.4' if server_root != '/' else s['url']
s['url'] = server_root + os.environ.get("TRAPI_VERSION", "1.4") if server_root != '/' else s['url']
s['x-maturity'] = os.environ.get("MATURITY_VALUE", "maturity")
s['x-location'] = os.environ.get("LOCATION_VALUE", "location")
open_api_schema['servers'] = api_docs['servers']
Expand Down
2 changes: 1 addition & 1 deletion node_normalizer/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

redis_host = os.environ.get("REDIS_HOST", loader.get_config()["redis_host"])
redis_port = os.environ.get("REDIS_PORT", loader.get_config()["redis_port"])
TRAPI_VERSION = os.environ.get("TRAPI_VERSION", "1.3")
TRAPI_VERSION = os.environ.get("TRAPI_VERSION", "1.4")

async_query_tasks = set()

Expand Down

0 comments on commit 73360e3

Please sign in to comment.