mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Merge branch 'master' of ../stable/lib
This commit is contained in:
commit
0b82e1ab3a
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."
|
"Return an adjusted delay value for CARD based on EASE."
|
||||||
if self.cardIsNew(card):
|
if self.cardIsNew(card):
|
||||||
return 0
|
return 0
|
||||||
if card.combinedDue <= time.time():
|
if card.combinedDue <= self.dueCutoff:
|
||||||
return (time.time() - card.due) / 86400.0
|
return (self.dueCutoff - card.due) / 86400.0
|
||||||
else:
|
else:
|
||||||
return (time.time() - card.combinedDue) / 86400.0
|
return (self.dueCutoff - card.combinedDue) / 86400.0
|
||||||
|
|
||||||
def resetCards(self, ids):
|
def resetCards(self, ids):
|
||||||
"Reset progress on cards in IDS."
|
"Reset progress on cards in IDS."
|
||||||
|
|
Loading…
Reference in a new issue