mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 17:26:36 -04:00
if the next step of the learn card is past the day cutoff, ignore left
This commit is contained in:
parent
a15b210349
commit
33407a6043
1 changed files with 2 additions and 1 deletions
|
@ -456,12 +456,13 @@ limit %d""" % (self._deckLimit(), self.reportLimit), lim=self.dayCutoff)
|
||||||
# new card; no ivl adjustment
|
# new card; no ivl adjustment
|
||||||
pass
|
pass
|
||||||
card.odue = self.today + 1
|
card.odue = self.today + 1
|
||||||
self.lrnCount += card.left
|
|
||||||
delay = self._delayForGrade(conf, card.left)
|
delay = self._delayForGrade(conf, card.left)
|
||||||
if card.due < time.time():
|
if card.due < time.time():
|
||||||
# not collapsed; add some randomness
|
# not collapsed; add some randomness
|
||||||
delay *= random.uniform(1, 1.25)
|
delay *= random.uniform(1, 1.25)
|
||||||
card.due = int(time.time() + delay)
|
card.due = int(time.time() + delay)
|
||||||
|
if card.due < self.dayCutoff:
|
||||||
|
self.lrnCount += card.left
|
||||||
# if the queue is not empty and there's nothing else to do, make
|
# if the queue is not empty and there's nothing else to do, make
|
||||||
# sure we don't put it at the head of the queue and end up showing
|
# sure we don't put it at the head of the queue and end up showing
|
||||||
# it twice in a row
|
# it twice in a row
|
||||||
|
|
Loading…
Reference in a new issue