diff options
author | zsloan | 2024-07-31 20:50:53 +0000 |
---|---|---|
committer | Alexander_Kabui | 2024-08-28 15:02:46 +0300 |
commit | d63b479de94548920a3a674e081963d4b76fd2b0 (patch) | |
tree | 36b4688ddb80e6a6edf20d82575f6fa9c0d0a631 /gn2/wqflask | |
parent | 31355c890dfc81b7c77792221a3c6592154fab9f (diff) | |
download | genenetwork2-d63b479de94548920a3a674e081963d4b76fd2b0.tar.gz |
Fix collections import by allowing GET method for collections/add endpoint
Diffstat (limited to 'gn2/wqflask')
-rw-r--r-- | gn2/wqflask/collect.py | 2 |
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")) |