mirror of
https://github.com/ankitects/anki.git
synced 2025-12-13 23:00:58 -05:00
parent
ea2dfaf59c
commit
81b4e521cc
1 changed files with 2 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
# Copyright: Damien Elmes <anki@ichi2.net>
|
# Copyright: Damien Elmes <anki@ichi2.net>
|
||||||
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
# License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
|
from __future__ import division
|
||||||
import time, datetime, json
|
import time, datetime, json
|
||||||
import anki.js
|
import anki.js
|
||||||
from anki.utils import fmtTimeSpan, ids2str
|
from anki.utils import fmtTimeSpan, ids2str
|
||||||
|
|
@ -323,7 +324,7 @@ group by day order by day""" % (self._limit(), lim),
|
||||||
period = 1
|
period = 1
|
||||||
else:
|
else:
|
||||||
period = max(
|
period = max(
|
||||||
1, 1+((self.col.sched.dayCutoff - (t/1000)) / 86400))
|
1, int(1+((self.col.sched.dayCutoff - (t/1000)) / 86400)))
|
||||||
i = []
|
i = []
|
||||||
self._line(i, _("Days studied"),
|
self._line(i, _("Days studied"),
|
||||||
_("<b>%(pct)d%%</b> (%(x)s of %(y)s)") % dict(
|
_("<b>%(pct)d%%</b> (%(x)s of %(y)s)") % dict(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue