Skip to content
Snippets Groups Projects
Commit 76444b8f authored by David Trattnig's avatar David Trattnig
Browse files

Merge existing records. engine-clock#1

parent 13588aaf
No related branches found
No related tags found
No related merge requests found
...@@ -73,6 +73,8 @@ class AuraDatabaseModel(): ...@@ -73,6 +73,8 @@ class AuraDatabaseModel():
""" """
if add: if add:
DB.session.add(self) DB.session.add(self)
else:
DB.session.merge(self)
if commit: if commit:
DB.session.commit() DB.session.commit()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment