let libanki add the necessary count

This commit is contained in:
Damien Elmes 2011-12-05 19:34:04 +09:00
parent 5fc4a80458
commit e9733beb81
2 changed files with 4 additions and 4 deletions

View file

@ -96,8 +96,8 @@ class Overview(object):
</td><td align=center>
%s</td></tr></table>''' % (
_("New"), counts[0],
_("In Learning"), counts[1],
_("To Review"), counts[2],
_("Learning"), counts[1],
_("Reviewing"), counts[2],
but("study", _("Study Now"), id="study"))

View file

@ -407,9 +407,9 @@ var updateTime = function () {
self.bottom._css + self._bottomCSS)
def _remaining(self):
counts = list(self.mw.col.sched.counts())
counts = list(self.mw.col.sched.counts(self.card))
idx = self.mw.col.sched.countIdx(self.card)
counts[idx] = "<u>%s</u>" % (counts[idx]+1)
counts[idx] = "<u>%s</u>" % (counts[idx])
space = " + "
ctxt = '<font color="#000099">%s</font>' % counts[0]
ctxt += space + '<font color="#990000">%s</font>' % counts[1]