mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
strictly enforce maxIvl
https://anki.tenderapp.com/discussions/ankidesktop/29904-bug-in-v2-scheduler-that-allows-exceeding-the-maximum-review-interval
This commit is contained in:
parent
15919d6a37
commit
f246cf1062
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
if fuzz:
|
||||
ivl = self._fuzzedIvl(ivl)
|
||||
ivl = min(ivl, conf['maxIvl'])
|
||||
ivl = max(ivl, prev+1, 1)
|
||||
ivl = min(ivl, conf['maxIvl'])
|
||||
return int(ivl)
|
||||
|
||||
def _daysLate(self, card):
|
||||
|
|
Loading…
Reference in a new issue