From 5d2356804e374872c12864375cd42ace232038ec Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 10 Jan 2009 13:53:14 +0900 Subject: [PATCH] graph review time in hours, not minutes --- anki/graphs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/graphs.py b/anki/graphs.py index d2a5b0e17..2207c07c6 100644 --- a/anki/graphs.py +++ b/anki/graphs.py @@ -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):