Use sqlite isolation_level=None in order to use autocommit mode and thus avoid sqlite auto-committing
This commit is contained in:
parent
70b7a44514
commit
6d39adbd8c
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue