fix graph dividing, make sure to display 'x cards waiting' msg

This commit is contained in:
Damien Elmes 2009-01-22 23:47:31 +09:00
parent 5545f5f622
commit a6b4252428
2 changed files with 2 additions and 4 deletions

View file

@ -642,9 +642,7 @@ At the same time tomorrow:<br><br>
'wait': ngettext("There will be <b>%s</b> card waiting.",
"There will be <b>%s</b> cards waiting.", cards) % cards,
}
if self.spacedCardCount():
msg = _("Spaced cards will be shown soon.")
elif next - time.time() > 86400 and not newCardsTomorrow:
if next - time.time() > 86400 and not newCardsTomorrow:
msg = (_("The next card will be shown in <b>%s</b>.") %
self.earliestTimeStr())
else:

View file

@ -109,7 +109,7 @@ from stats
where type = 1""")
dayTimes = self.deck.s.all("""
select day, reviewTime / 60.0 as reviewTime
select day, reviewTime as reviewTime
from stats
where type = 1""")