fix ngettext mistake in cards/minute stat

introduced in 46a38f843e
This commit is contained in:
Soren I. Bjornstad 2014-06-29 12:56:05 -05:00
parent c3434ff751
commit 0071ddfb89

View File

@ -354,7 +354,7 @@ group by day order by day""" % (self._limit(), lim),
if total and tot:
perMin = total / float(tot)
perMin = round(perMin, 1)
perMin = ngettext("%d card/minute", "%.01f cards/minute", perMin) % perMin
perMin = _("%.01f cards/minute") % perMin
# don't round down to zero
if float(perMin.split(' ')[0]) < 0.1:
perMin = ''.join(["<", _("%.01f cards/minute")]) % 0.1