From 50edf55c53912ed74a93207f44f201efaed883f4 Mon Sep 17 00:00:00 2001 From: maxsibilla Date: Wed, 20 Nov 2024 12:57:46 -0500 Subject: [PATCH] Updating UBKG link used --- src/instance/app.cfg.example | 1 - src/lib/rule_chain.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/instance/app.cfg.example b/src/instance/app.cfg.example index b90d899..61f7cc8 100644 --- a/src/instance/app.cfg.example +++ b/src/instance/app.cfg.example @@ -108,7 +108,6 @@ UBKG_ENDPOINT_VALUESET = 'valueset?parent_sab=SENNET&parent_code={code}&child_sa UBKG_CODES = '{"specimen_categories":"C020076", "organ_types":{"code": "C000008", "key": "organs", "endpoint": "organs?application_context=SENNET"}, "entities": "C000012", "source_types":"C050020"}' # UBKG Integration Configs for Rule Chain -UBKG_INTEGRATION_ENDPOINT = 'http://gateway.dev.hubmapconsortium.org:8181/' APPLICATION_CONTEXT = 'SENNET' # URI from which to load the assay classifier rules. diff --git a/src/lib/rule_chain.py b/src/lib/rule_chain.py index 33d1e74..42824e3 100644 --- a/src/lib/rule_chain.py +++ b/src/lib/rule_chain.py @@ -193,7 +193,7 @@ def apply_source_type_transformations(source_type: str, rule_value_set: dict) -> def get_data_from_ubkg(ubkg_code: str) -> dict: query = urllib.parse.urlencode({"application_context": current_app.config['APPLICATION_CONTEXT']}) - ubkg_api_url = f"{current_app.config['UBKG_INTEGRATION_ENDPOINT']}assayclasses/{ubkg_code}?{query}" + ubkg_api_url = f"{current_app.config['UBKG_SERVER']}assayclasses/{ubkg_code}?{query}" req = urllib.request.Request(ubkg_api_url) try: with urllib.request.urlopen(req) as response: