limit studied today message to minutes

This commit is contained in:
Damien Elmes 2012-09-28 13:13:01 +09:00
parent d9ad404445
commit f3c3281654

View file

@ -156,7 +156,8 @@ where id > ?""", (self.mw.col.sched.dayCutoff-86400)*1000)
cards = cards or 0 cards = cards or 0
thetime = thetime or 0 thetime = thetime or 0
msgp1 = ngettext("%d card", "%d cards", cards) % cards msgp1 = ngettext("%d card", "%d cards", cards) % cards
buf = _("Studied %(a)s in %(b)s today.") % dict(a=msgp1, b=fmtTimeSpan(thetime)) buf = _("Studied %(a)s in %(b)s today.") % dict(a=msgp1,
b=fmtTimeSpan(thetime, unit=2))
return buf return buf
def _renderDeckTree(self, nodes, depth=0): def _renderDeckTree(self, nodes, depth=0):