aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-03-11 06:10:35 +0000
committerzsloan2022-03-11 06:10:35 +0000
commite37f8e4e2f3650706ec00cbed7959562e6a82efa (patch)
treec2b67ea1192b8a4c4ce9e439cf5e604e5fe4e3ff
parent849f2a128fe13ebbb80f13722fddc7a7d436cc8b (diff)
downloadgenenetwork2-e37f8e4e2f3650706ec00cbed7959562e6a82efa.tar.gz
Fix error with calling database_connection in gen_dropdown_menu
-rw-r--r--wqflask/wqflask/api/router.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/api/router.py b/wqflask/wqflask/api/router.py
index 79dc5f1c..3d33cc87 100644
--- a/wqflask/wqflask/api/router.py
+++ b/wqflask/wqflask/api/router.py
@@ -848,7 +848,7 @@ def get_genotypes(group_name, file_format="csv", dataset_name=None):
@app.route("/api/v_{}/gen_dropdown".format(version), methods=("GET",))
def gen_dropdown_menu():
- with database_connection as conn:
+ with database_connection() as conn:
results = gen_menu.gen_dropdown_json(conn)
if len(results) > 0: