mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
respect max failed cards with 'show failed cards at end', set to default 1000
This commit is contained in:
parent
b136e505b0
commit
c6cddeb163
1 changed files with 2 additions and 3 deletions
|
@ -158,7 +158,7 @@ class Deck(object):
|
|||
if self.delay0 and self.failedNowCount:
|
||||
return self.s.scalar("select id from failedCards limit 1")
|
||||
# failed card queue too big?
|
||||
if (self.delay0 and self.failedCardMax and
|
||||
if (self.failedCardMax and
|
||||
self.failedSoonCount >= self.failedCardMax):
|
||||
return self.s.scalar(
|
||||
"select id from failedCards limit 1")
|
||||
|
@ -2009,6 +2009,7 @@ where key = :key""", key=key, value=value):
|
|||
self.failedCardMax = 20
|
||||
elif idx == 1:
|
||||
d = 0
|
||||
self.failedCardMax = 1000
|
||||
elif idx == 2:
|
||||
d = 600
|
||||
elif idx == 3:
|
||||
|
@ -2026,8 +2027,6 @@ where key = :key""", key=key, value=value):
|
|||
if d == 600 and self.failedCardMax == 20:
|
||||
return 0
|
||||
return 5
|
||||
if self.failedCardMax != 0:
|
||||
return 5
|
||||
if d == 0:
|
||||
return 1
|
||||
elif d == 600:
|
||||
|
|
Loading…
Reference in a new issue