display "if you studied every day" only when appropriate

(If you in fact did study every day during the period shown, it looks
silly.)
This commit is contained in:
Soren I. Bjornstad 2013-10-10 10:42:58 -05:00
parent 6c304ebe2f
commit 6c07a58c2a

View File

@ -341,6 +341,8 @@ group by day order by day""" % (self._limit(), lim),
tot *= 60
self._line(i, _("Average for days studied"), self._avgDay(
tot, studied, 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: