mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
fix unicode error in stats
This commit is contained in:
parent
729862e45e
commit
9c43e5928c
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue