aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2023-01-19 20:58:56 +0000
committerzsloan2023-02-28 14:18:09 -0600
commita215f40105ef89be44dff0b1eac3218c71ded5ed (patch)
tree6a15f8061b910c275bea8d84cee4a0d711362692 /wqflask
parent3f4369d569933a454a6a1482c031e1b33bf00856 (diff)
downloadgenenetwork2-a215f40105ef89be44dff0b1eac3218c71ded5ed.tar.gz
Add GET method to /run_mapping allowing it to pull the start_vars from Redis when an id is provided
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/views.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/wqflask/wqflask/views.py b/wqflask/wqflask/views.py
index 5f91edc8..0a8f3105 100644
--- a/wqflask/wqflask/views.py
+++ b/wqflask/wqflask/views.py
@@ -677,9 +677,13 @@ def loading_page():
return rendered_template
-@app.route("/run_mapping", methods=('POST',))
+@app.route("/run_mapping", methods=('POST','GET'))
def mapping_results_page():
- initial_start_vars = request.form
+ if request.method == "GET":
+ initial_start_vars = json.loads(Redis.get(request.args.get("hash")))
+ else:
+ initial_start_vars = request.form
+
temp_uuid = initial_start_vars['temp_uuid']
wanted = (
'trait_id',