Merge branch 'master' of git://github.com/timo/libanki

This commit is contained in:
Damien Elmes 2009-01-04 09:28:03 +09:00
commit 7adbad0ffa

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)