mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
make sure we don't introduce fp due times for learn cards
This commit is contained in:
parent
434b5442fd
commit
6946dc2eaa
1 changed files with 1 additions and 1 deletions
|
|
@ -318,7 +318,7 @@ limit %d""" % (self._groupLimit(), self.reportLimit), lim=self.dayCutoff)
|
||||||
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 = time.time() + delay
|
card.due = int(time.time() + delay)
|
||||||
heappush(self.lrnQueue, (card.due, card.id))
|
heappush(self.lrnQueue, (card.due, card.id))
|
||||||
# if it's due within the cutoff, increment count
|
# if it's due within the cutoff, increment count
|
||||||
if delay <= self.deck.qconf['collapseTime']:
|
if delay <= self.deck.qconf['collapseTime']:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue