aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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',