make sure we don't introduce fp due times for learn cards

This commit is contained in:
Damien Elmes 2011-04-22 05:57:21 +09:00
parent 434b5442fd
commit 6946dc2eaa

View file

@ -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']: