mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
fix seen card count in kanji, fix display bug
This commit is contained in:
parent
97cf06b333
commit
4e937bf72a
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
##########################################################################
|
||||
|
|
|
@ -527,7 +527,7 @@ cards.factId = fields.factId
|
|||
for (name, all), found in zip(self.kanjiGrades, self.kanjiSets)]
|
||||
out = (_("<h1>Kanji statistics</h1>The %d seen cards in this deck "
|
||||
"contain:") % self.deck.seenCardCount() +
|
||||
"<br/><ul>" +
|
||||
"<ul>" +
|
||||
# total kanji
|
||||
_("<li>%d total unique kanji.</li>") %
|
||||
sum([c[1] for c in counts]) +
|
||||
|
|
Loading…
Reference in a new issue