From 9c43e5928c18d908e0e6bf57784d81d7f222bb25 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 26 Oct 2012 16:59:18 +0900 Subject: [PATCH] fix unicode error in stats --- anki/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/stats.py b/anki/stats.py index e8cac5061..8b579c1bd 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -154,7 +154,7 @@ from revlog where id > ? """+lim, (self.col.sched.dayCutoff-86400)*1000) filt = filt or 0 # studied def bold(s): - return ""+str(s)+"" + return ""+unicode(s)+"" 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)))