aboutsummaryrefslogtreecommitdiff
path: root/wqflask/base/trait.py
diff options
context:
space:
mode:
authorzsloan2021-10-22 18:51:23 +0000
committerzsloan2021-10-22 18:53:24 +0000
commit6bdd48e506e7c05b89ab7669ff81040fdd862ebb (patch)
tree66df5b27e13060e5d05302cc6183ad7c99d9cc2a /wqflask/base/trait.py
parenta9ca9b0da80feaa5318343dbb7b814c78b5f41f7 (diff)
downloadgenenetwork2-6bdd48e506e7c05b89ab7669ff81040fdd862ebb.tar.gz
Replace hardcoded GN proxy URLs in trait.py with one pulled from settings
Diffstat (limited to 'wqflask/base/trait.py')
-rw-r--r--wqflask/base/trait.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/base/trait.py b/wqflask/base/trait.py
index 96a09302..f0749858 100644
--- a/wqflask/base/trait.py
+++ b/wqflask/base/trait.py
@@ -7,7 +7,7 @@ from base.webqtlCaseData import webqtlCaseData
from base.data_set import create_dataset
from utility import hmac
from utility.authentication_tools import check_resource_availability
-from utility.tools import GN2_BASE_URL
+from utility.tools import GN2_BASE_URL, GN_PROXY_URL
from utility.redis_tools import get_redis_conn, get_resource_id
from utility.db_tools import escape
@@ -361,10 +361,10 @@ def retrieve_trait_info(trait, dataset, get_qtl_info=False):
resource_id = get_resource_id(dataset, trait.name)
if dataset.type == 'Publish':
- the_url = "http://localhost:8080/run-action?resource={}&user={}&branch=data&action=view".format(
+ the_url = GN_PROXY_URL + "run-action?resource={}&user={}&branch=data&action=view".format(
resource_id, g.user_session.user_id)
else:
- the_url = "http://localhost:8080/run-action?resource={}&user={}&branch=data&action=view&trait={}".format(
+ the_url = GN_PROXY_URL + "run-action?resource={}&user={}&branch=data&action=view&trait={}".format(
resource_id, g.user_session.user_id, trait.name)
try: