From 559e926626f7292b012733d225888ab2f68410c3 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 17 Jun 2022 11:24:52 +0200 Subject: [PATCH] fix commit in db --- ereuse_devicehub/resources/action/views/snapshot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/resources/action/views/snapshot.py b/ereuse_devicehub/resources/action/views/snapshot.py index 1477835c..bca48f84 100644 --- a/ereuse_devicehub/resources/action/views/snapshot.py +++ b/ereuse_devicehub/resources/action/views/snapshot.py @@ -193,7 +193,7 @@ class SnapshotView(SnapshotMixin): raise err 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() self.response = self.schema.jsonify(snapshot) # transform it back