From d0fb87d432f5054e4eb2861dd566a5a3a3c4b73f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 29 Jan 2019 08:01:23 +1000 Subject: [PATCH] make sure lapse % doesn't create decimal intervals issue reported on https://github.com/dae/anki/pull/272 --- anki/schedv2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/schedv2.py b/anki/schedv2.py index acf615f10..0503510ce 100644 --- a/anki/schedv2.py +++ b/anki/schedv2.py @@ -859,7 +859,7 @@ select id from cards where did in %s and queue = 2 and due <= ? limit ?)""" return delay def _lapseIvl(self, card, conf): - ivl = max(1, conf['minInt'], card.ivl*conf['mult']) + ivl = max(1, conf['minInt'], int(card.ivl*conf['mult'])) return ivl def _rescheduleRev(self, card, ease, early):