fix commit in db
This commit is contained in:
parent
5262d407b8
commit
559e926626
|
@ -193,7 +193,7 @@ class SnapshotView(SnapshotMixin):
|
||||||
raise err
|
raise err
|
||||||
|
|
||||||
db.session.add(snapshot)
|
db.session.add(snapshot)
|
||||||
self.errors(txt="Ok", severity=Severity.Info, snapshot=snapshot, commit=True)
|
self.errors(txt="Ok", severity=Severity.Info, snapshot=snapshot, commit=False)
|
||||||
|
|
||||||
db.session().final_flush()
|
db.session().final_flush()
|
||||||
self.response = self.schema.jsonify(snapshot) # transform it back
|
self.response = self.schema.jsonify(snapshot) # transform it back
|
||||||
|
|
Reference in New Issue