From 33407a6043bd8b1d52907c618060a436cc5d23ab Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 20 May 2012 12:01:52 +0900 Subject: [PATCH] if the next step of the learn card is past the day cutoff, ignore left --- anki/sched.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anki/sched.py b/anki/sched.py index 09ab1cf24..997d9fd2e 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -456,12 +456,13 @@ limit %d""" % (self._deckLimit(), self.reportLimit), lim=self.dayCutoff) # new card; no ivl adjustment pass card.odue = self.today + 1 - self.lrnCount += card.left delay = self._delayForGrade(conf, card.left) if card.due < time.time(): # not collapsed; add some randomness delay *= random.uniform(1, 1.25) 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 # sure we don't put it at the head of the queue and end up showing # it twice in a row