mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
add card ease stats
This commit is contained in:
parent
6dfaccaa5e
commit
7612259a72
1 changed files with 9 additions and 0 deletions
|
@ -419,6 +419,15 @@ class DeckStats(object):
|
||||||
html += tr(_("In last month"), _("<b>%(a)d</b> (<b>%(b)s</b>/day)") % (
|
html += tr(_("In last month"), _("<b>%(a)d</b> (<b>%(b)s</b>/day)") % (
|
||||||
{'a': np, 'b': fmtFloat(np / float(30))}))
|
{'a': np, 'b': fmtFloat(np / float(30))}))
|
||||||
html += "</table>"
|
html += "</table>"
|
||||||
|
|
||||||
|
html += "<br><br><b>" + _("Card Ease") + "</b><br>"
|
||||||
|
html += _("Lowest factor: %.1fx") % d.s.scalar(
|
||||||
|
"select min(factor) from cards") + "<br>"
|
||||||
|
html += _("Average factor: %.1fx") % d.s.scalar(
|
||||||
|
"select avg(factor) from cards") + "<br>"
|
||||||
|
html += _("Highest factor: %.1fx") % d.s.scalar(
|
||||||
|
"select max(factor) from cards") + "<br>"
|
||||||
|
|
||||||
return html
|
return html
|
||||||
|
|
||||||
def getAverageInterval(self):
|
def getAverageInterval(self):
|
||||||
|
|
Loading…
Reference in a new issue