mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
don't return a negative delay for failed cards
This commit is contained in:
parent
5e23e168c0
commit
19a293cf74
1 changed files with 2 additions and 0 deletions
|
@ -979,6 +979,8 @@ and type between 1 and 2""",
|
|||
"Return an adjusted delay value for CARD based on EASE."
|
||||
if self.cardIsNew(card):
|
||||
return 0
|
||||
if card.reps and not card.successive:
|
||||
return 0
|
||||
if card.combinedDue <= self.dueCutoff:
|
||||
return (self.dueCutoff - card.due) / 86400.0
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue