about summary refs log tree commit diff
diff options
context:
space:
mode:
authorzsloan2023-04-06 18:50:52 +0000
committerzsloan2023-04-06 18:54:08 +0000
commit8cf19b761c036f94e20c1ba7e214134173d9484c (patch)
tree4bb10adf01426014401ca1fd1a449196188eb51b
parentcee15ae774691f706cf2de31e8dadba7d2d4930a (diff)
downloadgenenetwork2-8cf19b761c036f94e20c1ba7e214134173d9484c.tar.gz
Commit updates for phenotype/publication metadata
-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 76e3184d..28606c8b 100644
--- a/wqflask/wqflask/metadata_edits.py
+++ b/wqflask/wqflask/metadata_edits.py
@@ -274,6 +274,7 @@ View the diffs <a href='{url}' target='_blank'>here</a>", "success")
             data=Phenotype(**phenotype_),
             where=Phenotype(id_=data_.get("phenotype-id")),
         )
+        conn.commit()
     diff_data = {}
     if updated_phenotypes:
         diff_data.update(
@@ -322,6 +323,7 @@ View the diffs <a href='{url}' target='_blank'>here</a>", "success")
                 data=Publication(**publication_),
                 where=Publication(id_=data_.get("old_id_")),
             )
+        conn.commit()
 
     if updated_publications:
         diff_data.update(