mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
seen & non-jouyou kanji
This commit is contained in:
parent
2845bb2db2
commit
b0cac63056
1 changed files with 18 additions and 2 deletions
|
@ -1185,14 +1185,30 @@ day = :d""", d=yesterday)
|
|||
|
||||
def onKanjiStats(self):
|
||||
rep = anki.stats.KanjiStats(self.deck).report()
|
||||
rep += _("<a href=py:miss>Missing Kanji</a><br>")
|
||||
self.help.showText(rep, py={"miss": self.onMissingStats})
|
||||
rep += _("<a href=py:miss>Missing</a><br>")
|
||||
rep += _("<a href=py:seen>Seen</a><br>")
|
||||
rep += _("<a href=py:non>Non-jouyou</a><br>")
|
||||
self.help.showText(rep, py={
|
||||
"miss": self.onMissingStats,
|
||||
"seen": self.onSeenKanjiStats,
|
||||
"non": self.onNonJouyouKanjiStats,
|
||||
})
|
||||
|
||||
def onMissingStats(self):
|
||||
ks = anki.stats.KanjiStats(self.deck)
|
||||
ks.genKanjiSets()
|
||||
self.help.showText(ks.missingReport())
|
||||
|
||||
def onSeenKanjiStats(self):
|
||||
ks = anki.stats.KanjiStats(self.deck)
|
||||
ks.genKanjiSets()
|
||||
self.help.showText(ks.seenReport())
|
||||
|
||||
def onNonJouyouKanjiStats(self):
|
||||
ks = anki.stats.KanjiStats(self.deck)
|
||||
ks.genKanjiSets()
|
||||
self.help.showText(ks.nonJouyouReport())
|
||||
|
||||
def onDeckStats(self):
|
||||
txt = anki.stats.DeckStats(self.deck).report()
|
||||
self.help.showText(txt)
|
||||
|
|
Loading…
Reference in a new issue