From 73dc2463f199c98b55ca8b3f6aef3a96ea592fc0 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 10 Mar 2023 00:40:51 +0100 Subject: [PATCH] Added auto_commit=False to entities.save() --- platypush/entities/_engine/repo/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platypush/entities/_engine/repo/__init__.py b/platypush/entities/_engine/repo/__init__.py index ec4956a19..306655137 100644 --- a/platypush/entities/_engine/repo/__init__.py +++ b/platypush/entities/_engine/repo/__init__.py @@ -38,7 +38,10 @@ class EntitiesRepository: """ with self._db.get_session( - locked=True, autoflush=False, expire_on_commit=False + locked=True, + autoflush=False, + autocommit=False, + expire_on_commit=False, ) as session: merged_entities = self._merger.merge(session, entities) merged_entities = self._db.upsert(session, merged_entities)