aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorzsloan2024-07-31 20:50:53 +0000
committerzsloan2024-07-31 20:51:38 +0000
commit6635b09700a647f05bd619e4ef93e99622183448 (patch)
treecf8a9dee2e574fdfe0c08a0f55284c618ea4bc49 /gn2
parent6cb592ac79f87c5357c3da1fd8da05b355d9b6f9 (diff)
downloadgenenetwork2-6635b09700a647f05bd619e4ef93e99622183448.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"))