fix unicode error in stats

This commit is contained in:
Damien Elmes 2012-10-26 16:59:18 +09:00
parent 729862e45e
commit 9c43e5928c

View file

@ -154,7 +154,7 @@ from revlog where id > ? """+lim, (self.col.sched.dayCutoff-86400)*1000)
filt = filt or 0
# studied
def bold(s):
return "<b>"+str(s)+"</b>"
return "<b>"+unicode(s)+"</b>"
msgp1 = ngettext("%d card", "%d cards", cards) % cards
b += _("Studied %(a)s in %(b)s today.") % dict(
a=bold(msgp1), b=bold(fmtTimeSpan(thetime, unit=1)))