From 6830ca99d9331e2e4105fe0853ad758c8f7b77bc Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 26 Oct 2012 23:35:16 +0900 Subject: [PATCH] fix again count --- anki/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/stats.py b/anki/stats.py index 8b579c1bd..7cc4c9ba5 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -139,7 +139,7 @@ body {background-image: url(data:image/png;base64,%s); } lim = " and " + lim cards, thetime, failed, lrn, rev, relrn, filt = self.col.db.first(""" select count(), sum(time)/1000, -sum(case when ease = 0 then 1 else 0 end), /* failed */ +sum(case when ease = 1 then 1 else 0 end), /* failed */ sum(case when type = 0 then 1 else 0 end), /* learning */ sum(case when type = 1 then 1 else 0 end), /* review */ sum(case when type = 2 then 1 else 0 end), /* relearn */