diff --git a/pylib/anki/sched.py b/pylib/anki/sched.py index 0c59773bc..0e9c07967 100644 --- a/pylib/anki/sched.py +++ b/pylib/anki/sched.py @@ -341,7 +341,7 @@ limit %d""" resched = self._resched(card) if "mult" in conf and resched: # review that's lapsed - card.ivl = max(1, conf["minInt"], card.ivl * conf["mult"]) + card.ivl = max(1, conf["minInt"], int(card.ivl * conf["mult"])) else: # new card; no ivl adjustment pass diff --git a/pylib/tests/test_schedv2.py b/pylib/tests/test_schedv2.py index 1feb94f4c..cd98b1968 100644 --- a/pylib/tests/test_schedv2.py +++ b/pylib/tests/test_schedv2.py @@ -968,7 +968,7 @@ def test_timing(): c2 = d.sched.getCard() assert c2.queue == QUEUE_TYPE_REV # if the failed card becomes due, it should show first - c.due = time.time() - 1 + c.due = intTime() - 1 c.flush() d.reset() c = d.sched.getCard()