mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 21:57:12 -05:00
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:
parent
c810ed7254
commit
d2e23af5e6
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue