don't throw error when showing cram date in stats either

This commit is contained in:
Damien Elmes 2012-05-06 01:09:43 +09:00
parent 623dff8df0
commit 782dd53d16

View file

@ -35,6 +35,9 @@ class CardStats(object):
next = time.time()+((c.due - self.col.sched.today)*86400) next = time.time()+((c.due - self.col.sched.today)*86400)
else: else:
next = c.due next = c.due
if c.odid:
next = _("(cram)")
else:
next = self.date(next) next = self.date(next)
self.addLine(_("Due"), next) self.addLine(_("Due"), next)
self.addLine(_("Interval"), fmt(c.ivl * 86400)) self.addLine(_("Interval"), fmt(c.ivl * 86400))