make sure lapse % doesn't create decimal intervals

issue reported on
https://github.com/dae/anki/pull/272
This commit is contained in:
Damien Elmes 2019-01-29 08:01:23 +10:00
parent fcfb45ccdf
commit d0fb87d432

View File

@ -859,7 +859,7 @@ select id from cards where did in %s and queue = 2 and due <= ? limit ?)"""
return delay return delay
def _lapseIvl(self, card, conf): 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 return ivl
def _rescheduleRev(self, card, ease, early): def _rescheduleRev(self, card, ease, early):