mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
increase db timeout
possible workaround for 'database is locked' when switching from WAL mode https://anki.tenderapp.com/discussions/ankidesktop/29751-90dec2fdce28bb9f0bb7571f41edaff258e953d3
This commit is contained in:
parent
8775314e36
commit
71053fcea9
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ from sqlite3 import dbapi2 as sqlite
|
|||
DBError = sqlite.Error
|
||||
|
||||
class DB:
|
||||
def __init__(self, path, timeout=0):
|
||||
def __init__(self, path, timeout=5):
|
||||
self._db = sqlite.connect(path, timeout=timeout)
|
||||
self._db.text_factory = self._textFactory
|
||||
self._path = path
|
||||
|
|
Loading…
Reference in a new issue