diff options
author | Frederick Muriuki Muriithi | 2024-06-05 16:12:35 -0500 |
---|---|---|
committer | Alexander_Kabui | 2024-08-28 15:02:45 +0300 |
commit | 2439a4a0af29a57adc55fec093e4231c7b320ff6 (patch) | |
tree | cce7a4d98b22e173a149108b7533f4be9e6c974d /gn2/wqflask/oauth2 | |
parent | 67df44ac2df9f05da22634f04eaaf29393710e9f (diff) | |
download | genenetwork2-2439a4a0af29a57adc55fec093e4231c7b320ff6.tar.gz |
Build phenotype results template URI on backend
Build the template URI on the backend to remove the need to remember
to update the javascript if the URI changes in the future.
Diffstat (limited to 'gn2/wqflask/oauth2')
-rw-r--r-- | gn2/wqflask/oauth2/data.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gn2/wqflask/oauth2/data.py b/gn2/wqflask/oauth2/data.py index 29d68be0..b7c7800c 100644 --- a/gn2/wqflask/oauth2/data.py +++ b/gn2/wqflask/oauth2/data.py @@ -70,7 +70,9 @@ def __search_phenotypes__(query, template, **kwargs): selected_traits=selected_traits, search_results=search_results, search_endpoint=urljoin( authserver_uri(), "auth/data/search"), - gn_server_url = authserver_uri(), + auth_server_url=authserver_uri(), + pheno_results_template=urljoin( + authserver_uri(), "auth/data/search/phenotype/<jobid>"), results_endpoint=urljoin( authserver_uri(), f"auth/data/search/phenotype/{job_id}"), |