aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorzsloan2024-07-31 20:50:53 +0000
committerAlexander_Kabui2024-08-28 15:02:46 +0300
commitd63b479de94548920a3a674e081963d4b76fd2b0 (patch)
tree36b4688ddb80e6a6edf20d82575f6fa9c0d0a631 /gn2
parent31355c890dfc81b7c77792221a3c6592154fab9f (diff)
downloadgenenetwork2-d63b479de94548920a3a674e081963d4b76fd2b0.tar.gz
Fix collections import by allowing GET method for collections/add endpoint
Diffstat (limited to 'gn2')
-rw-r--r--gn2/wqflask/collect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn2/wqflask/collect.py b/gn2/wqflask/collect.py
index 9e0640a5..dd561a78 100644
--- a/gn2/wqflask/collect.py
+++ b/gn2/wqflask/collect.py
@@ -72,7 +72,7 @@ def store_traits_list():
return hash
-@app.route("/collections/add", methods=["POST"])
+@app.route("/collections/add", methods=('GET', 'POST'))
def collections_add():
anon_id = session_info()["anon_id"]
traits = request.args.get("traits", request.form.get("traits"))