From 6d39adbd8cdf5ebc443b5c332aaed43bffeceff7 Mon Sep 17 00:00:00 2001 From: croneter Date: Fri, 13 Dec 2019 07:45:38 +0100 Subject: [PATCH] Use sqlite isolation_level=None in order to use autocommit mode and thus avoid sqlite auto-committing --- resources/lib/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/db.py b/resources/lib/db.py index 2c701040..ca998941 100644 --- a/resources/lib/db.py +++ b/resources/lib/db.py @@ -78,7 +78,7 @@ def connect(media_type=None): db_path = v.DB_TEXTURE_PATH else: db_path = v.DB_VIDEO_PATH - conn = sqlite3.connect(db_path, timeout=30.0) + conn = sqlite3.connect(db_path, timeout=30.0, isolation_level=None) attempts = DB_WRITE_ATTEMPTS while True: try: