mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
when calculating next interval ensure we don't have a negative delay
This commit is contained in:
parent
8a1df1728f
commit
8828027729
1 changed files with 2 additions and 2 deletions
|
@ -895,8 +895,8 @@ and type between 1 and 2""",
|
|||
def _nextInterval(self, card, delay, ease):
|
||||
interval = card.interval
|
||||
factor = card.factor
|
||||
# if shown early and not failed
|
||||
if delay < 0 and card.successive:
|
||||
# if shown early
|
||||
if delay < 0:
|
||||
# FIXME: this should recreate lastInterval from interval /
|
||||
# lastFactor, or we lose delay information when reviewing early
|
||||
interval = max(card.lastInterval, card.interval + delay)
|
||||
|
|
Loading…
Reference in a new issue