mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
strip trailing whitespace and wrap lines in stats
This commit is contained in:
parent
08eb6ac063
commit
a958734f8b
1 changed files with 13 additions and 6 deletions
|
@ -332,20 +332,27 @@ class DeckStats(object):
|
||||||
html += _("Total number of facts:") + " <b>%d</b><br><br>" % d.factCount
|
html += _("Total number of facts:") + " <b>%d</b><br><br>" % d.factCount
|
||||||
|
|
||||||
html += "<b>" + _("Card counts") + "</b><br>"
|
html += "<b>" + _("Card counts") + "</b><br>"
|
||||||
html += _("Mature cards:") + " <b>%(old)d</b> (%(oldP)s)<br>" % {'old': stats['old'], 'oldP' : fmtPerc(stats['oldP'])}
|
html += _("Mature cards:") + " <b>%(old)d</b> (%(oldP)s)<br>" % {
|
||||||
html += _("Young cards:") + " <b>%(young)d</b> (%(youngP)s)<br>" % {'young': stats['young'], 'youngP' : fmtPerc(stats['youngP'])}
|
'old': stats['old'], 'oldP' : fmtPerc(stats['oldP'])}
|
||||||
html += _("Unseen cards:") + " <b>%(new)d</b> (%(newP)s)<br><br>" % {'new': stats['new'], 'newP' : fmtPerc(stats['newP'])}
|
html += _("Young cards:") + " <b>%(young)d</b> (%(youngP)s)<br>" % {
|
||||||
|
'young': stats['young'], 'youngP' : fmtPerc(stats['youngP'])}
|
||||||
|
html += _("Unseen cards:") + " <b>%(new)d</b> (%(newP)s)<br><br>" % {
|
||||||
|
'new': stats['new'], 'newP' : fmtPerc(stats['newP'])}
|
||||||
|
|
||||||
html += "<b>" + _("Correct answers") + "</b><br>"
|
html += "<b>" + _("Correct answers") + "</b><br>"
|
||||||
html += _("Mature cards:") + "<b>" + fmtPerc(stats['gMatureYes%']) + (
|
html += _("Mature cards:") + "<b>" + fmtPerc(stats['gMatureYes%']) + (
|
||||||
"</b> " + _("%(partOf)d of %(totalSum)d") % {'partOf' : stats['gMatureYes'],
|
"</b> " + _("%(partOf)d of %(totalSum)d") % {
|
||||||
|
'partOf' : stats['gMatureYes'],
|
||||||
'totalSum' : stats['gMatureTotal'] } + "<br>")
|
'totalSum' : stats['gMatureTotal'] } + "<br>")
|
||||||
html += _("Young cards:") + " <b>" + fmtPerc(stats['gYoungYes%']) + (
|
html += _("Young cards:") + " <b>" + fmtPerc(stats['gYoungYes%']) + (
|
||||||
"</b> " + _("%(partOf)d of %(totalSum)d") % {'partOf' : stats['gYoungYes'],
|
"</b> " + _("%(partOf)d of %(totalSum)d") % {
|
||||||
|
'partOf' : stats['gYoungYes'],
|
||||||
'totalSum' : stats['gYoungTotal'] } + "<br>")
|
'totalSum' : stats['gYoungTotal'] } + "<br>")
|
||||||
html += _("First-seen cards:") + " <b>" + fmtPerc(stats['gNewYes%']) + (
|
html += _("First-seen cards:") + " <b>" + fmtPerc(stats['gNewYes%']) + (
|
||||||
"</b> " + _("%(partOf)d of %(totalSum)d") % {'partOf' : stats['gNewYes'],
|
"</b> " + _("%(partOf)d of %(totalSum)d") % {
|
||||||
|
'partOf' : stats['gNewYes'],
|
||||||
'totalSum' : stats['gNewTotal'] } + "<br><br>")
|
'totalSum' : stats['gNewTotal'] } + "<br><br>")
|
||||||
|
|
||||||
# average pending time
|
# average pending time
|
||||||
existing = d.cardCount - d.newCountToday
|
existing = d.cardCount - d.newCountToday
|
||||||
avgInt = self.getAverageInterval()
|
avgInt = self.getAverageInterval()
|
||||||
|
|
Loading…
Reference in a new issue