mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
use dueCutoff, not current time for delay calculation
This commit is contained in:
parent
7547b395ea
commit
467eb87a48
1 changed files with 3 additions and 3 deletions
|
|
@ -971,10 +971,10 @@ and queue between 1 and 2""",
|
||||||
"Return an adjusted delay value for CARD based on EASE."
|
"Return an adjusted delay value for CARD based on EASE."
|
||||||
if self.cardIsNew(card):
|
if self.cardIsNew(card):
|
||||||
return 0
|
return 0
|
||||||
if card.due <= time.time():
|
if card.due <= self.dueCutoff:
|
||||||
return (time.time() - card.due) / 86400.0
|
return (self.dueCutoff - card.due) / 86400.0
|
||||||
else:
|
else:
|
||||||
return (time.time() - card.due) / 86400.0
|
return (self.dueCutoff - card.due) / 86400.0
|
||||||
|
|
||||||
def resetCards(self, ids=None):
|
def resetCards(self, ids=None):
|
||||||
"Reset progress on cards in IDS."
|
"Reset progress on cards in IDS."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue