diff options
author | Frederick Muriuki Muriithi | 2021-12-17 11:01:32 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-01-28 08:07:26 +0300 |
commit | 2f8da375776669a29bbd0a8aaef06098890e0fe6 (patch) | |
tree | 10dbef08fbc05cf2a0e3dfc242187033a8aba9d6 /wqflask | |
parent | 1720d204c484d88d038fcab89f0117873a2bfc9b (diff) | |
download | genenetwork2-2f8da375776669a29bbd0a8aaef06098890e0fe6.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.py | 2 |
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( |