From f9f257286686335dae106e753ebc74da08fa917e Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 1 Apr 2022 03:23:09 +0000 Subject: Fix the way database_connection was being called in 2 places in metadata_edits.py For some reason there were two places where it wasn't being called as a function. Fixing this appears to have fixed the error --- wqflask/wqflask/metadata_edits.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py index 30acf4d4..86f9ccad 100644 --- a/wqflask/wqflask/metadata_edits.py +++ b/wqflask/wqflask/metadata_edits.py @@ -198,7 +198,7 @@ def display_phenotype_metadata(dataset_id: str, name: str): @edit_access_required @login_required def display_probeset_metadata(name: str): - with database_connection as conn: + with database_connection() as conn: _d = edit_probeset(conn=conn, name=name) return render_template( "edit_probeset.html", @@ -356,7 +356,7 @@ def update_phenotype(dataset_id: str, name: str): @edit_access_required @login_required def update_probeset(name: str): - with database_connection as conn: + with database_connection() as conn: data_ = request.form.to_dict() probeset_ = { "id_": data_.get("id"), -- cgit v1.2.3