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.
This commit is contained in:
Timo Paulssen 2008-12-13 03:22:42 +01:00
parent c810ed7254
commit d2e23af5e6

View file

@ -159,6 +159,7 @@ from stats""")
return fig return fig
def addedRecently(self, numdays=30, attr='created'): def addedRecently(self, numdays=30, attr='created'):
self.calcStats()
days = {} days = {}
fig = Figure(figsize=(self.width, self.height), dpi=self.dpi) fig = Figure(figsize=(self.width, self.height), dpi=self.dpi)
limit = self.endOfDay - (numdays + 1) * 86400 limit = self.endOfDay - (numdays + 1) * 86400