From 6c07a58c2af4f5c1f16cc4d260598fc556a739ff Mon Sep 17 00:00:00 2001 From: "Soren I. Bjornstad" Date: Thu, 10 Oct 2013 10:42:58 -0500 Subject: [PATCH] display "if you studied every day" only when appropriate (If you in fact did study every day during the period shown, it looks silly.) --- anki/stats.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/anki/stats.py b/anki/stats.py index b60debba7..22eb3a728 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -341,8 +341,10 @@ group by day order by day""" % (self._limit(), lim), tot *= 60 self._line(i, _("Average for days studied"), self._avgDay( tot, studied, unit)) - self._line(i, _("If you studied every day"), self._avgDay( - tot, period, unit)) + if studied != period: + # don't display if you did study every day + self._line(i, _("If you studied every day"), self._avgDay( + tot, period, unit)) if total and tot: perMin = total / float(tot) perMin = ngettext("%d card/minute", "%d cards/minute", perMin) % perMin