From 0843db03fd9633e131242b0685bde0007488c30f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 13 Mar 2012 22:02:46 +0900 Subject: [PATCH] when graphing deck life, period = first day --- anki/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/stats.py b/anki/stats.py index ca82c2365..7cdc10103 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -251,7 +251,7 @@ group by day order by day""" % (self._limit(), lim), tot = totd[-1][1] period = self._periodDays() if not period: - period = self.col.sched.today - first + 1 + period = first i = [] self._line(i, _("Days studied"), _("%(pct)d%% (%(x)s of %(y)s)") % dict(