From cda86307c0a459966f272526387a01d3ee16e205 Mon Sep 17 00:00:00 2001 From: dae Date: Sun, 25 May 2014 14:55:29 +0900 Subject: [PATCH] round cards/minute (thanks to Markus) --- anki/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/stats.py b/anki/stats.py index 197e941a9..7a93dbadd 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -353,7 +353,7 @@ group by day order by day""" % (self._limit(), lim), tot, period, unit)) if total and tot: perMin = total / float(tot) - perMin = ngettext("%d card/minute", "%d cards/minute", perMin) % perMin + perMin = ngettext("%d card/minute", "%d cards/minute", perMin) % round(perMin) self._line( i, _("Average answer time"), _("%(a)0.1fs (%(b)s)") % dict(a=(tot*60)/total, b=perMin))