mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
set isolation_level=None when using apsw
This commit is contained in:
parent
dce35eda06
commit
fa6d1f9528
1 changed files with 1 additions and 1 deletions
|
|
@ -2798,7 +2798,7 @@ class DeckStorage(object):
|
||||||
import apsw
|
import apsw
|
||||||
acon = apsw.Connection(unicode(path, "utf-8"))
|
acon = apsw.Connection(unicode(path, "utf-8"))
|
||||||
def connect():
|
def connect():
|
||||||
pycon = sqlite.connect(acon)
|
pycon = sqlite.connect(acon, isolation_level=None)
|
||||||
return pycon
|
return pycon
|
||||||
engine = create_engine('sqlite:///', creator=connect)
|
engine = create_engine('sqlite:///', creator=connect)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue