add card ease stats

This commit is contained in:
Damien Elmes 2009-07-05 16:41:18 +09:00
parent 6dfaccaa5e
commit 7612259a72

View file

@ -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):