don't overcount learning reps by 1

This commit is contained in:
Damien Elmes 2011-12-05 17:57:32 +09:00
parent 41636f41f8
commit e7101faff7

View file

@ -348,6 +348,7 @@ limit %d""" % (self._deckLimit(), self.reportLimit), lim=self.dayCutoff)
if self._lrnQueue[0][0] < cutoff:
id = heappop(self._lrnQueue)[1]
self.lrnCount -= 1
self.lrnRepCount -= 1
return id
def _answerLrnCard(self, card, ease):