mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
don't update odue if we're not in a filtered deck
This commit is contained in:
parent
2ee3ec8b7a
commit
fa1d309885
1 changed files with 4 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue