From 663fd820767aef2611421e41b95b5f0185cc29ae Mon Sep 17 00:00:00 2001 From: Neverbolt Date: Tue, 3 Dec 2024 09:03:54 +0100 Subject: [PATCH] rolls back sqlite3 autocommit to isolation_level=None for <3.12 compatibility --- src/hackingBuddyGPT/utils/db_storage/db_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hackingBuddyGPT/utils/db_storage/db_storage.py b/src/hackingBuddyGPT/utils/db_storage/db_storage.py index 1c2c874..9176bc0 100644 --- a/src/hackingBuddyGPT/utils/db_storage/db_storage.py +++ b/src/hackingBuddyGPT/utils/db_storage/db_storage.py @@ -101,7 +101,7 @@ def init(self): self.setup_db() def connect(self): - self.db = sqlite3.connect(self.connection_string, autocommit=True) + self.db = sqlite3.connect(self.connection_string, isolation_level=None) self.db.row_factory = sqlite3.Row self.cursor = self.db.cursor()