mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
add hook for deck stats
This commit is contained in:
parent
7612259a72
commit
b4a330a946
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ from datetime import date
|
|||
from anki.db import *
|
||||
from anki.lang import _
|
||||
from anki.utils import canonifyTags, ids2str
|
||||
from anki.hooks import runFilter
|
||||
|
||||
# Tracking stats on the DB
|
||||
##########################################################################
|
||||
|
@ -427,6 +428,7 @@ class DeckStats(object):
|
|||
"select avg(factor) from cards") + "<br>"
|
||||
html += _("Highest factor: %.1fx") % d.s.scalar(
|
||||
"select max(factor) from cards") + "<br>"
|
||||
html = runFilter("deckStats", html)
|
||||
|
||||
return html
|
||||
|
||||
|
|
Loading…
Reference in a new issue