fix x axis on ivl graph when showing deck life

This commit is contained in:
Damien Elmes 2012-10-23 21:39:58 +09:00
parent 439821b3c9
commit 96b0087262

View file

@ -401,7 +401,7 @@ group by day order by day)""" % lim,
elif self.type == 1: elif self.type == 1:
ivlmax = 52 ivlmax = 52
else: else:
ivlmax = max(5, ivls[-1][0] / 31) ivlmax = max(5, ivls[-1][0])
txt = self._title(_("Intervals"), txt = self._title(_("Intervals"),
_("Delays until reviews are shown again.")) _("Delays until reviews are shown again."))
txt += self._graph(id="ivl", ylabel2=_("Percentage"), data=[ txt += self._graph(id="ivl", ylabel2=_("Percentage"), data=[