mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
if show failed cards at end, use maxFailed = 0
This commit is contained in:
parent
bf59bcd1d7
commit
845aede221
1 changed files with 6 additions and 2 deletions
|
|
@ -50,7 +50,7 @@ SEARCH_TAG = 0
|
||||||
SEARCH_TYPE = 1
|
SEARCH_TYPE = 1
|
||||||
SEARCH_PHRASE = 2
|
SEARCH_PHRASE = 2
|
||||||
SEARCH_FID = 3
|
SEARCH_FID = 3
|
||||||
DECK_VERSION = 36
|
DECK_VERSION = 37
|
||||||
|
|
||||||
deckVarsTable = Table(
|
deckVarsTable = Table(
|
||||||
'deckVars', metadata,
|
'deckVars', metadata,
|
||||||
|
|
@ -2013,7 +2013,6 @@ where key = :key""", key=key, value=value):
|
||||||
self.failedCardMax = 20
|
self.failedCardMax = 20
|
||||||
elif idx == 1:
|
elif idx == 1:
|
||||||
d = 0
|
d = 0
|
||||||
self.failedCardMax = 1000
|
|
||||||
elif idx == 2:
|
elif idx == 2:
|
||||||
d = 600
|
d = 600
|
||||||
elif idx == 3:
|
elif idx == 3:
|
||||||
|
|
@ -3144,6 +3143,11 @@ nextFactor, reps, thinkingTime, yesCount, noCount from reviewHistory""")
|
||||||
deck.s.execute("analyze")
|
deck.s.execute("analyze")
|
||||||
deck.version = 36
|
deck.version = 36
|
||||||
deck.s.commit()
|
deck.s.commit()
|
||||||
|
if deck.version < 37:
|
||||||
|
if deck.getFailedCardPolicy() == 1:
|
||||||
|
deck.failedCardMax = 0
|
||||||
|
deck.version = 37
|
||||||
|
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