From 7612259a722007f8942d14d5ee93884b4709650e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 5 Jul 2009 16:41:18 +0900 Subject: [PATCH] add card ease stats --- anki/stats.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/anki/stats.py b/anki/stats.py index d4e33fde4..eed30c5ae 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -419,6 +419,15 @@ class DeckStats(object): html += tr(_("In last month"), _("%(a)d (%(b)s/day)") % ( {'a': np, 'b': fmtFloat(np / float(30))})) html += "" + + html += "

" + _("Card Ease") + "
" + html += _("Lowest factor: %.1fx") % d.s.scalar( + "select min(factor) from cards") + "
" + html += _("Average factor: %.1fx") % d.s.scalar( + "select avg(factor) from cards") + "
" + html += _("Highest factor: %.1fx") % d.s.scalar( + "select max(factor) from cards") + "
" + return html def getAverageInterval(self):