From e37f8e4e2f3650706ec00cbed7959562e6a82efa Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 11 Mar 2022 06:10:35 +0000 Subject: Fix error with calling database_connection in gen_dropdown_menu --- wqflask/wqflask/api/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3