mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
make sure daysLate() works with review cards in a cram deck
This commit is contained in:
parent
b5cafd370f
commit
4c369ba6af
1 changed files with 2 additions and 1 deletions
|
@ -687,7 +687,8 @@ did = ? and queue = 2 and due <= ? limit ?""",
|
|||
|
||||
def _daysLate(self, card):
|
||||
"Number of days later than scheduled."
|
||||
return max(0, self.today - card.due)
|
||||
due = card.odue if card.odid else card.due
|
||||
return max(0, self.today - due)
|
||||
|
||||
def _updateRevIvl(self, card, ease):
|
||||
"Update CARD's interval, trying to avoid siblings."
|
||||
|
|
Loading…
Reference in a new issue