mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
derive period in review history graph from revlog, not collection crt
This commit is contained in:
parent
5514b75d6b
commit
84134106cb
1 changed files with 6 additions and 1 deletions
|
@ -251,7 +251,12 @@ group by day order by day""" % (self._limit(), lim),
|
||||||
tot = totd[-1][1]
|
tot = totd[-1][1]
|
||||||
period = self._periodDays()
|
period = self._periodDays()
|
||||||
if not period:
|
if not period:
|
||||||
period = first
|
# base off earliest repetition date
|
||||||
|
t = self.col.db.scalar("select id from revlog limit 1")
|
||||||
|
if not t:
|
||||||
|
period = 1
|
||||||
|
else:
|
||||||
|
period = (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