make sure lapse % doesn't create decimal intervals
issue reported on https://github.com/dae/anki/pull/272
This commit is contained in:
parent
fcfb45ccdf
commit
d0fb87d432
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user