aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2023-04-03 21:35:42 +0000
committerzsloan2023-04-03 21:35:42 +0000
commitfa92004a8bcd0c4a514f75986f8101c9384c6acc (patch)
tree9bf16f9399d0c7322c2346a0c72a7c515338261d /wqflask
parent751272a0f954129f1190521ccff9367df95f3525 (diff)
downloadgenenetwork2-fa92004a8bcd0c4a514f75986f8101c9384c6acc.tar.gz
Add conn.commit() for metadata edits
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/metadata_edits.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/wqflask/wqflask/metadata_edits.py b/wqflask/wqflask/metadata_edits.py
index 730c2d44..76e3184d 100644
--- a/wqflask/wqflask/metadata_edits.py
+++ b/wqflask/wqflask/metadata_edits.py
@@ -358,6 +358,7 @@ View the diffs <a href='{url}' target='_blank'>here</a>", "success")
json_data=json.dumps(diff_data),
),
)
+ conn.commit()
flash(f"Diff-data: \n{diff_data}\nhas been uploaded", "success")
return redirect(
f"/datasets/{dataset_id}/traits/{name}"
@@ -440,6 +441,7 @@ def update_probeset(name: str):
json_data=json.dumps(diff_data),
),
)
+ conn.commit()
edited_values = {k: v for (k, v) in diff_data['Probeset'].items()
if k not in {"id_", "timestamp", "author"}}
changes = []