diff options
author | zsloan | 2022-04-01 03:23:09 +0000 |
---|---|---|
committer | zsloan | 2022-04-01 03:23:09 +0000 |
commit | f9f257286686335dae106e753ebc74da08fa917e (patch) | |
tree | 8f83827e31452a9672c3778ee0a40961a13c1390 /wqflask | |
parent | 850844cd69db321553d52c91bc81b2433b72d824 (diff) | |
download | genenetwork2-f9f257286686335dae106e753ebc74da08fa917e.tar.gz |
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
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/metadata_edits.py | 4 |
1 files 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"), |