don't update odue if we're not in a filtered deck

This commit is contained in:
Damien Elmes 2012-09-09 06:08:00 +09:00
parent 2ee3ec8b7a
commit fa1d309885

View file

@ -759,7 +759,10 @@ 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.odue = card.due = self.today + card.ivl card.due = self.today + card.ivl
# if it's a filtered deck, update odue as well
if card.odid:
card.odue = card.due
# 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: