mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04: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:
|
||||
period = 1
|
||||
else:
|
||||
period = (self.col.sched.dayCutoff - (t/1000)) / 86400
|
||||
period = max(
|
||||
1, (self.col.sched.dayCutoff - (t/1000)) / 86400)
|
||||
i = []
|
||||
self._line(i, _("Days studied"),
|
||||
_("<b>%(pct)d%%</b> (%(x)s of %(y)s)") % dict(
|
||||
|
|
Loading…
Reference in a new issue