fixed "unsubscriptable object" when disabling all the graphs before workDone.

This commit is contained in:
Timo Paulssen 2009-01-04 01:26:46 +01:00
parent 4a22f5b6e7
commit 3a2fd8b5ad

View file

@ -141,6 +141,7 @@ where type = 1""")
return fig return fig
def workDone(self, days=30): def workDone(self, days=30):
self.calcStats()
for type in ["dayRepsNew", "dayRepsYoung", "dayRepsMature"]: for type in ["dayRepsNew", "dayRepsYoung", "dayRepsMature"]:
self.addMissing(self.stats[type], -days, 0) self.addMissing(self.stats[type], -days, 0)