From 6635b09700a647f05bd619e4ef93e99622183448 Mon Sep 17 00:00:00 2001 From: zsloan Date: Wed, 31 Jul 2024 20:50:53 +0000 Subject: Fix collections import by allowing GET method for collections/add endpoint --- gn2/wqflask/collect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gn2/wqflask') 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")) -- cgit v1.2.3