make sure we honor the minimum interval on lapses

This commit is contained in:
Damien Elmes 2012-08-26 15:09:28 +09:00
parent 7e2c11d45c
commit 1be0f919f4

View file

@ -781,7 +781,7 @@ did = ? and queue = 2 and due <= ? limit ?""",
return delay
def _nextLapseIvl(self, card, conf):
return int(card.ivl*conf['mult']) + 1
return max(conf['minInt'], int(card.ivl*conf['mult']))
def _rescheduleRev(self, card, ease):
# update interval