Use sqlite isolation_level=None in order to use autocommit mode and thus avoid sqlite auto-committing

This commit is contained in:
croneter 2019-12-13 07:45:38 +01:00
parent 70b7a44514
commit 6d39adbd8c

View file

@ -78,7 +78,7 @@ def connect(media_type=None):
db_path = v.DB_TEXTURE_PATH db_path = v.DB_TEXTURE_PATH
else: else:
db_path = v.DB_VIDEO_PATH 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 attempts = DB_WRITE_ATTEMPTS
while True: while True:
try: try: