mirror of
https://github.com/ankitects/anki.git
synced 2025-11-10 06:37:12 -05:00
remove shared cache mode, it's not needed
This commit is contained in:
parent
34be5b47a7
commit
95b8d655e6
3 changed files with 2 additions and 1 deletions
|
|
@ -22,7 +22,6 @@ except ImportError:
|
|||
from sqlite3 import dbapi2 as sqlite
|
||||
except:
|
||||
raise "Please install pysqlite2 or python2.5"
|
||||
sqlite.enable_shared_cache(True)
|
||||
|
||||
from sqlalchemy import (Table, Integer, Float, Column, MetaData,
|
||||
ForeignKey, Boolean, String, Date,
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ class Anki10Importer(Importer):
|
|||
# update total and refresh
|
||||
self.total = len(res['added-facts']['facts'])
|
||||
src.s.rollback()
|
||||
src.engine.dispose()
|
||||
self.deck.flushMod()
|
||||
self.deck.finishProgress()
|
||||
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ def test_anki10():
|
|||
i.doImport()
|
||||
assert i.total == 2
|
||||
deck.s.rollback()
|
||||
deck.close()
|
||||
# import a deck into itself - 10-2 is the same as test10, but with one
|
||||
# card answered and another deleted. nothing should be synced to client
|
||||
deck = DeckStorage.Deck(file)
|
||||
|
|
|
|||
Loading…
Reference in a new issue