aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorBonfaceKilz2022-03-12 14:47:15 +0300
committerBonfaceKilz2022-03-12 15:33:01 +0300
commit71c131f80ed5f7e2f34b941ae2068f9cbbde2ca2 (patch)
tree9438af61f68d4f756ccf4715cfcaded516741c25 /wqflask
parent5ea303bd83ddb0b47a9372a674f7b27572703354 (diff)
downloadgenenetwork2-71c131f80ed5f7e2f34b941ae2068f9cbbde2ca2.tar.gz
Close a connection after it's use
* wqflask/wqflask/metadata_edits.py (approve_data): Explicitly close a connection after it is used.
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/metadata_edits.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py
index 9d99f4da..7e949829 100644
--- a/wqflask/wqflask/metadata_edits.py
+++ b/wqflask/wqflask/metadata_edits.py
@@ -539,6 +539,6 @@ def approve_data(resource_id:str, file_name: str):
f"{file_name}.rejected"))
flash(("Automatically rejecting this file since no "
"changes could be applied."), "warning")
-
+ conn.close()
return redirect(url_for('metadata_edit.list_diffs'))