graph review time in hours, not minutes

This commit is contained in:
Damien Elmes 2009-01-10 13:53:14 +09:00
parent 8c6647f1d5
commit 5d2356804e

View file

@ -109,7 +109,7 @@ from stats
where type = 1""")
dayTimes = self.deck.s.all("""
select day, reviewTime
select day, reviewTime / 60.0 as reviewTime
from stats
where type = 1""")
@ -190,7 +190,7 @@ where type = 1""")
graph = fig.add_subplot(111)
self.filledGraph(graph, days, reviewTimeC, *times)
graph.set_xlim(xmin=-days, xmax=0)
graph.set_ylim(ymax=max(a for a in times[1]) + 10)
graph.set_ylim(ymax=max(a for a in times[1]) + 0.1)
return fig
def cumulativeDue(self, days=30):