mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
include day/week info too
This commit is contained in:
parent
ed9901a71d
commit
be7794bb56
1 changed files with 10 additions and 6 deletions
|
@ -88,15 +88,19 @@ table * { font-size: 14px; }
|
||||||
return txt
|
return txt
|
||||||
|
|
||||||
def _dueInfo(self, tot, num):
|
def _dueInfo(self, tot, num):
|
||||||
avg = tot/float(num)
|
|
||||||
txt = _("Average reviews: %s")
|
|
||||||
if self.type == 0:
|
if self.type == 0:
|
||||||
txt = txt % _("%d/day") % avg
|
days = num
|
||||||
elif self.type == 1:
|
elif self.type == 1:
|
||||||
txt = txt % _("%d/week") % avg
|
days = num*7
|
||||||
else:
|
else:
|
||||||
txt =txt % _("%d/month") % avg
|
days = num*30
|
||||||
|
vals = []
|
||||||
|
vals.append(_("%d/day") % (tot/days))
|
||||||
|
if self.type > 0:
|
||||||
|
vals.append(_("%d/week") % (tot/(days/7)))
|
||||||
|
if self.type > 1:
|
||||||
|
vals.append(_("%d/month") % (tot/(days/30)))
|
||||||
|
txt = _("Average reviews: <b>%s</b>") % ", ".join(vals)
|
||||||
return txt
|
return txt
|
||||||
|
|
||||||
def _due(self, start=None, end=None, chunk=1):
|
def _due(self, start=None, end=None, chunk=1):
|
||||||
|
|
Loading…
Reference in a new issue