From 3a2fd8b5ada44e713289899579a763e15b2880e5 Mon Sep 17 00:00:00 2001 From: Timo Paulssen Date: Sun, 4 Jan 2009 01:26:46 +0100 Subject: [PATCH] fixed "unsubscriptable object" when disabling all the graphs before workDone. --- anki/graphs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/anki/graphs.py b/anki/graphs.py index a4b9a261e..e7e8b721f 100644 --- a/anki/graphs.py +++ b/anki/graphs.py @@ -141,6 +141,7 @@ where type = 1""") return fig def workDone(self, days=30): + self.calcStats() for type in ["dayRepsNew", "dayRepsYoung", "dayRepsMature"]: self.addMissing(self.stats[type], -days, 0)