mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
make sure the finished message displays cards due tomorrow
This commit is contained in:
parent
03503cd9b9
commit
943c9a0e5f
1 changed files with 7 additions and 2 deletions
|
@ -1069,7 +1069,7 @@ At this time tomorrow:<br>
|
|||
'wait': ngettext("There will be <b>%s review</b>.",
|
||||
"There will be <b>%s reviews</b>.", cards) % cards,
|
||||
}
|
||||
if next - time.time() > 86400 and not newCardsTomorrow:
|
||||
if next > (self.dueCutoff+86400) and not newCardsTomorrow:
|
||||
msg = (_("The next review is in <b>%s</b>.") %
|
||||
self.earliestTimeStr())
|
||||
else:
|
||||
|
@ -1089,7 +1089,12 @@ limit 1"""))
|
|||
select combinedDue+%d from cards c where type = 0 and combinedDue > :lim
|
||||
order by combinedDue
|
||||
limit 1""" % self.delay0))
|
||||
return min(earliestRev, earliestFail)
|
||||
if earliestRev and earliestFail:
|
||||
return min(earliestRev, earliestFail)
|
||||
elif earliestRev:
|
||||
return earliestRev
|
||||
else:
|
||||
return earliestFail
|
||||
|
||||
def earliestTimeStr(self, next=None):
|
||||
"""Return the relative time to the earliest card as a string."""
|
||||
|
|
Loading…
Reference in a new issue