mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
ensure period is always 1+
This commit is contained in:
parent
89eea5f964
commit
f6b620f9ed
1 changed files with 2 additions and 1 deletions
|
|
@ -256,7 +256,8 @@ group by day order by day""" % (self._limit(), lim),
|
||||||
if not t:
|
if not t:
|
||||||
period = 1
|
period = 1
|
||||||
else:
|
else:
|
||||||
period = (self.col.sched.dayCutoff - (t/1000)) / 86400
|
period = max(
|
||||||
|
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