From d2e23af5e60b2fc8e5e520470601e00871f55f0b Mon Sep 17 00:00:00 2001 From: Timo Paulssen Date: Sat, 13 Dec 2008 03:22:42 +0100 Subject: [PATCH] making the Figures lazy introduced a bug. fixed it here. whenever the recently added or first answered graph was the first one to be calculated, it wouldn't have generated the stats yet. --- anki/graphs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/anki/graphs.py b/anki/graphs.py index 2e57fb221..2afd8df06 100644 --- a/anki/graphs.py +++ b/anki/graphs.py @@ -159,6 +159,7 @@ from stats""") return fig def addedRecently(self, numdays=30, attr='created'): + self.calcStats() days = {} fig = Figure(figsize=(self.width, self.height), dpi=self.dpi) limit = self.endOfDay - (numdays + 1) * 86400