From 4e937bf72a819416ae2e89ed7dcc22cf3b021771 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 15 Nov 2008 17:50:46 +0900 Subject: [PATCH] fix seen card count in kanji, fix display bug --- anki/deck.py | 2 +- anki/stats.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/anki/deck.py b/anki/deck.py index 1ce994d21..218d34411 100644 --- a/anki/deck.py +++ b/anki/deck.py @@ -647,7 +647,7 @@ select count(id) from cards where type in (0,1,2) and priority = 0""") def seenCardCount(self): return self.s.scalar( - "select count(id) from cards where type = 2") + "select count(id) from cards where type != 2") # Counts related to due cards ########################################################################## diff --git a/anki/stats.py b/anki/stats.py index 505b6414f..95bc0ca68 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -527,7 +527,7 @@ cards.factId = fields.factId for (name, all), found in zip(self.kanjiGrades, self.kanjiSets)] out = (_("

Kanji statistics

The %d seen cards in this deck " "contain:") % self.deck.seenCardCount() + - "