tweak spaceCards()

This commit is contained in:
Damien Elmes 2010-12-15 04:46:40 +09:00
parent d2e3d7932d
commit 907fa5c80e

View file

@ -890,7 +890,7 @@ and type between 1 and 2""",
id=card.id, now=time.time(), factId=card.factId, id=card.id, now=time.time(), factId=card.factId,
cut=self.dueCutoff, new=new) cut=self.dueCutoff, new=new)
# update local cache of seen facts # update local cache of seen facts
self.spacedFacts[card.factId] = time.time() + self.newSpacing self.spacedFacts[card.factId] = new
def isLeech(self, card): def isLeech(self, card):
no = card.noCount no = card.noCount