mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
let libanki add the necessary count
This commit is contained in:
parent
5fc4a80458
commit
e9733beb81
2 changed files with 4 additions and 4 deletions
|
@ -96,8 +96,8 @@ class Overview(object):
|
||||||
</td><td align=center>
|
</td><td align=center>
|
||||||
%s</td></tr></table>''' % (
|
%s</td></tr></table>''' % (
|
||||||
_("New"), counts[0],
|
_("New"), counts[0],
|
||||||
_("In Learning"), counts[1],
|
_("Learning"), counts[1],
|
||||||
_("To Review"), counts[2],
|
_("Reviewing"), counts[2],
|
||||||
but("study", _("Study Now"), id="study"))
|
but("study", _("Study Now"), id="study"))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -407,9 +407,9 @@ var updateTime = function () {
|
||||||
self.bottom._css + self._bottomCSS)
|
self.bottom._css + self._bottomCSS)
|
||||||
|
|
||||||
def _remaining(self):
|
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)
|
idx = self.mw.col.sched.countIdx(self.card)
|
||||||
counts[idx] = "<u>%s</u>" % (counts[idx]+1)
|
counts[idx] = "<u>%s</u>" % (counts[idx])
|
||||||
space = " + "
|
space = " + "
|
||||||
ctxt = '<font color="#000099">%s</font>' % counts[0]
|
ctxt = '<font color="#000099">%s</font>' % counts[0]
|
||||||
ctxt += space + '<font color="#990000">%s</font>' % counts[1]
|
ctxt += space + '<font color="#990000">%s</font>' % counts[1]
|
||||||
|
|
Loading…
Reference in a new issue