need to update odue when failing rev card in filtered deck

This commit is contained in:
Damien Elmes 2012-09-06 04:34:44 +09:00
parent 1db6a0bd3a
commit 59cb45eda6

View file

@ -753,7 +753,7 @@ did = ? and queue = 2 and due <= ? limit ?""",
card.lapses += 1 card.lapses += 1
card.ivl = self._nextLapseIvl(card, conf) card.ivl = self._nextLapseIvl(card, conf)
card.factor = max(1300, card.factor-200) card.factor = max(1300, card.factor-200)
card.due = self.today + card.ivl card.odue = card.due = self.today + card.ivl
# if suspended as a leech, nothing to do # if suspended as a leech, nothing to do
delay = 0 delay = 0
if self._checkLeech(card, conf) and card.queue == -1: if self._checkLeech(card, conf) and card.queue == -1: