when reapplying fail mult, ensure minInt (#552)

This commit is contained in:
Damien Elmes 2013-01-23 15:30:11 +09:00
parent 17b68d5dc0
commit cb1485d18b

View File

@ -532,7 +532,7 @@ did = ? and queue = 3 and due <= ? limit ?""",
resched = self._resched(card)
if 'mult' in conf and resched:
# review that's lapsed
card.ivl = max(1, card.ivl*conf['mult'])
card.ivl = max(1, conf['minInt'], card.ivl*conf['mult'])
else:
# new card; no ivl adjustment
pass