since interval is updated first, use lastInterval in cardIsBeingLearnt()

This commit is contained in:
Damien Elmes 2010-02-01 05:11:34 +09:00
parent 9b61d86096
commit 8378f71c73

View file

@ -984,7 +984,7 @@ and due < :now""" % self.forceIndex("ix_cards_priorityDue"), now=time.time())
def cardIsBeingLearnt(self, card):
"True if card should use present intervals."
return card.interval < 7
return card.lastInterval < 7
def cardIsYoung(self, card):
"True if card is not new and not mature."