From fa92004a8bcd0c4a514f75986f8101c9384c6acc Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 3 Apr 2023 21:35:42 +0000 Subject: Add conn.commit() for metadata edits --- wqflask/wqflask/metadata_edits.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wqflask') 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 here", "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 = [] -- cgit v1.2.3