when graphing deck life, period = first day

This commit is contained in:
Damien Elmes 2012-03-13 22:02:46 +09:00
parent acd0316a14
commit 0843db03fd

View file

@ -251,7 +251,7 @@ group by day order by day""" % (self._limit(), lim),
tot = totd[-1][1] tot = totd[-1][1]
period = self._periodDays() period = self._periodDays()
if not period: if not period:
period = self.col.sched.today - first + 1 period = first
i = [] i = []
self._line(i, _("Days studied"), self._line(i, _("Days studied"),
_("<b>%(pct)d%%</b> (%(x)s of %(y)s)") % dict( _("<b>%(pct)d%%</b> (%(x)s of %(y)s)") % dict(