mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
when calculating delay, compare against cutoff, not current time
This commit is contained in:
parent
88fdaef939
commit
008c5904ca
1 changed files with 3 additions and 3 deletions
|
@ -979,10 +979,10 @@ and type between 1 and 2""",
|
|||
"Return an adjusted delay value for CARD based on EASE."
|
||||
if self.cardIsNew(card):
|
||||
return 0
|
||||
if card.combinedDue <= time.time():
|
||||
return (time.time() - card.due) / 86400.0
|
||||
if card.combinedDue <= self.dueCutoff:
|
||||
return (self.dueCutoff - card.due) / 86400.0
|
||||
else:
|
||||
return (time.time() - card.combinedDue) / 86400.0
|
||||
return (self.dueCutoff - card.combinedDue) / 86400.0
|
||||
|
||||
def resetCards(self, ids):
|
||||
"Reset progress on cards in IDS."
|
||||
|
|
Loading…
Reference in a new issue