Commit 76444b8f authored by David Trattnig's avatar David Trattnig
Browse files

Merge existing records. engine-clock#1

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