don't die if the reps data is empty

This commit is contained in:
Damien Elmes 2011-03-26 20:58:35 +09:00
parent b52a2eed6d
commit 5914761ff8

View file

@ -100,6 +100,8 @@ group by day order by day""" % (self._limit(), lim),
_("Review Time"))
def _repsGraph(self, data, days, reptitle, timetitle):
if not data:
return ""
d = data
conf = dict(
xaxis=dict(tickDecimals=0),