mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
tweak deck stats for new scheduling
This commit is contained in:
parent
1e2d88dccf
commit
fbae42d8ef
2 changed files with 1 additions and 14 deletions
|
@ -1207,7 +1207,7 @@ and due < :now""", now=time.time())
|
||||||
def newCountAll(self):
|
def newCountAll(self):
|
||||||
"All new cards, including spaced."
|
"All new cards, including spaced."
|
||||||
return self.s.scalar(
|
return self.s.scalar(
|
||||||
"select count(id) from cards where type = 2")
|
"select count(id) from cards where type in (2,5)")
|
||||||
|
|
||||||
# Card predicates
|
# Card predicates
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
|
@ -344,19 +344,6 @@ class DeckStats(object):
|
||||||
html += _("Average interval: ") + ("<b>%s</b> ") % fmtFloat(avgInt) + _("days")
|
html += _("Average interval: ") + ("<b>%s</b> ") % fmtFloat(avgInt) + _("days")
|
||||||
html += "<br>"
|
html += "<br>"
|
||||||
html += "<br>"
|
html += "<br>"
|
||||||
inactive = d.inactiveCardCount()
|
|
||||||
suspended = d.suspendedCardCount()
|
|
||||||
active = total - inactive - suspended
|
|
||||||
inactiveP = inactive / float(total) * 100
|
|
||||||
suspendedP = suspended / float(total) * 100
|
|
||||||
activeP = active / float(total) * 100
|
|
||||||
html += "<b>" + _("Card State") + "</b><br>"
|
|
||||||
html += _("Active cards:") + " <b>%(a)d</b> (%(b)s)<br>" % {
|
|
||||||
'a': active, 'b' : fmtPerc(activeP)}
|
|
||||||
html += _("Inactive cards:") + " <b>%(a)d</b> (%(b)s)<br>" % {
|
|
||||||
'a': inactive, 'b' : fmtPerc(inactiveP)}
|
|
||||||
html += _("Suspended cards:") + " <b>%(a)d</b> (%(b)s)<br><br>" % {
|
|
||||||
'a': suspended, 'b' : fmtPerc(suspendedP)}
|
|
||||||
html += "<b>" + _("Correct Answers") + "</b><br>"
|
html += "<b>" + _("Correct Answers") + "</b><br>"
|
||||||
html += _("Mature cards: <!--correct answers-->") + " <b>" + fmtPerc(stats['gMatureYes%']) + (
|
html += _("Mature cards: <!--correct answers-->") + " <b>" + fmtPerc(stats['gMatureYes%']) + (
|
||||||
"</b> " + _("(%(partOf)d of %(totalSum)d)") % {
|
"</b> " + _("(%(partOf)d of %(totalSum)d)") % {
|
||||||
|
|
Loading…
Reference in a new issue