aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-05 16:38:21 -0500
committerFrederick Muriuki Muriithi2024-06-05 16:38:21 -0500
commit00e9a91e7a43a6e56fc45407b09cf291bfbbf5e9 (patch)
tree658007fd03401f2b1492fe8f684cfc61f8256a06 /gn2/wqflask
parent0acac9d1d27d922e69fc2a2163429df5a69862a3 (diff)
downloadgenenetwork2-00e9a91e7a43a6e56fc45407b09cf291bfbbf5e9.tar.gz
Bug: Add missing data to search query.
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/oauth2/data.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gn2/wqflask/oauth2/data.py b/gn2/wqflask/oauth2/data.py
index 767de1a3..16e5f60c 100644
--- a/gn2/wqflask/oauth2/data.py
+++ b/gn2/wqflask/oauth2/data.py
@@ -124,6 +124,7 @@ def json_search_mrna() -> Response:
@data.route("/phenotype/search", methods=["POST"])
def json_search_phenotypes() -> Response:
"""Search for phenotypes."""
+ from gn2.utility.tools import GN_SERVER_URL
form = request.json
def __handle_error__(err):
error = process_error(err)
@@ -138,6 +139,7 @@ def json_search_phenotypes() -> Response:
"per_page": int(form.get("per_page", 50)),
"page": int(form.get("page", 1)),
"auth_server_uri": authserver_uri(),
+ "gn3_server_uri": GN_SERVER_URL,
"selected_traits": form.get("selected_traits", [])
}).either(__handle_error__, jsonify)