aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2021-12-17 11:01:32 +0300
committerzsloan2022-01-29 00:42:44 -0600
commit6c7231c0dec704ad2722e12190914ce5cf8822fd (patch)
tree3d5f4cffaf764a16032bdd055bb1f81b8a2d4e11 /wqflask
parent2822237883b9a91fb35f33fb9094d2dcb9e44855 (diff)
downloadgenenetwork2-6c7231c0dec704ad2722e12190914ce5cf8822fd.tar.gz
Use list rather than tuple
Issue: https://github.com/genenetwork/gn-gemtext-threads/blob/main/topics/gn1-migration-to-gn2/partial-correlations.gmi * Using a tuple, rather than a list for the HTTP methods in the route definition causes an error. This fixes that by using a list.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/partial_correlations_views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/partial_correlations_views.py b/wqflask/wqflask/partial_correlations_views.py
index 9a443897..0b7ffd37 100644
--- a/wqflask/wqflask/partial_correlations_views.py
+++ b/wqflask/wqflask/partial_correlations_views.py
@@ -221,7 +221,7 @@ def pcorrelations(conn, values):
tuple(trait_fullname(trait) for trait in values["control_traits"]),
values["method"], values["criteria"], values["target_db"])
-@app.route("/partial_correlations", methods=("POST",))
+@app.route("/partial_correlations", methods=["POST"])
def partial_correlations():
form = request.form
traits_list = tuple(filter(