Damien Elmes 2018-09-25 09:55:46 +10:00
parent 15919d6a37
commit f246cf1062

View file

@ -943,8 +943,8 @@ select id from cards where did in %s and queue = 2 and due <= ? limit ?)"""
ivl = int(ivl * conf.get('ivlFct', 1)) ivl = int(ivl * conf.get('ivlFct', 1))
if fuzz: if fuzz:
ivl = self._fuzzedIvl(ivl) ivl = self._fuzzedIvl(ivl)
ivl = min(ivl, conf['maxIvl'])
ivl = max(ivl, prev+1, 1) ivl = max(ivl, prev+1, 1)
ivl = min(ivl, conf['maxIvl'])
return int(ivl) return int(ivl)
def _daysLate(self, card): def _daysLate(self, card):