From d63b479de94548920a3a674e081963d4b76fd2b0 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