diff --git a/anki/schedv2.py b/anki/schedv2.py index 43c8092ef..1c3f29ea7 100644 --- a/anki/schedv2.py +++ b/anki/schedv2.py @@ -896,7 +896,7 @@ select id from cards where did in %s and queue = 2 and due <= ? limit ?)""" delay = self._daysLate(card) conf = self._revConf(card) fct = card.factor / 1000 - ivl2 = self._constrainedIvl((card.ivl + delay // 4) * 1.2, conf, card.ivl, fuzz) + ivl2 = self._constrainedIvl(card.ivl * 1.2, conf, card.ivl, fuzz) if ease == 2: return ivl2 diff --git a/tests/test_schedv2.py b/tests/test_schedv2.py index fa732e34b..5e5f68a9b 100644 --- a/tests/test_schedv2.py +++ b/tests/test_schedv2.py @@ -325,8 +325,8 @@ def test_reviews(): d.reset() d.sched.answerCard(c, 2) assert c.queue == 2 - # the new interval should be (100 + 8/4) * 1.2 = 122 - assert checkRevIvl(d, c, 122) + # the new interval should be (100) * 1.2 = 120 + assert checkRevIvl(d, c, 120) assert c.due == d.sched.today + c.ivl # factor should have been decremented assert c.factor == 2350