mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
To respect the max interval the user has set.
This commit is contained in:
parent
c94b6a24bd
commit
cdfdffd608
1 changed files with 1 additions and 1 deletions
|
@ -894,7 +894,7 @@ select id from cards where did in %s and queue = 2 and due <= ? limit ?)"""
|
|||
elif ease == 4:
|
||||
interval = ivl4
|
||||
# interval capped?
|
||||
return max(min(interval, conf['maxIvl']), card.ivl+1)
|
||||
return min(max(interval, card.ivl+1), conf['maxIvl'])
|
||||
|
||||
def _fuzzedIvl(self, ivl):
|
||||
min, max = self._fuzzIvlRange(ivl)
|
||||
|
|
Loading…
Reference in a new issue