mirror of
https://github.com/ankitects/anki.git
synced 2025-11-11 15:17:12 -05:00
fixed "unsubscriptable object" when disabling all the graphs before workDone.
This commit is contained in:
parent
4a22f5b6e7
commit
3a2fd8b5ad
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue