mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 09:16:38 -04:00
reuse features as media url, blank
This commit is contained in:
parent
6b7c0d7997
commit
2f93ca3d8f
1 changed files with 6 additions and 1 deletions
|
@ -55,7 +55,7 @@ SEARCH_TAG = 0
|
||||||
SEARCH_TYPE = 1
|
SEARCH_TYPE = 1
|
||||||
SEARCH_PHRASE = 2
|
SEARCH_PHRASE = 2
|
||||||
SEARCH_FID = 3
|
SEARCH_FID = 3
|
||||||
DECK_VERSION = 39
|
DECK_VERSION = 40
|
||||||
|
|
||||||
deckVarsTable = Table(
|
deckVarsTable = Table(
|
||||||
'deckVars', metadata,
|
'deckVars', metadata,
|
||||||
|
@ -3214,6 +3214,11 @@ nextFactor, reps, thinkingTime, yesCount, noCount from reviewHistory""")
|
||||||
#deck.updateTagPriorities()
|
#deck.updateTagPriorities()
|
||||||
deck.version = 39
|
deck.version = 39
|
||||||
deck.s.commit()
|
deck.s.commit()
|
||||||
|
if deck.version < 40:
|
||||||
|
# now stores media url
|
||||||
|
deck.s.statement("update models set features = ''")
|
||||||
|
deck.version = 40
|
||||||
|
deck.s.commit()
|
||||||
# executing a pragma here is very slow on large decks, so we store
|
# executing a pragma here is very slow on large decks, so we store
|
||||||
# our own record
|
# our own record
|
||||||
if not deck.getInt("pageSize") == 4096:
|
if not deck.getInt("pageSize") == 4096:
|
||||||
|
|
Loading…
Reference in a new issue