make sure we display review graph even if there's only a single bar

This commit is contained in:
Damien Elmes 2012-10-23 23:24:13 +09:00
parent fb06966398
commit f0a0df5a29

View file

@ -318,7 +318,7 @@ group by day order by day""" % (self._limit(), lim),
alltot.append((row[0], allcnt)) alltot.append((row[0], allcnt))
ret = [] ret = []
for (n, col, lab) in spec: for (n, col, lab) in spec:
if len(totd[n]) > 1 and totcnt[n]: if len(totd[n]) and totcnt[n]:
# bars # bars
ret.append(dict(data=sep[n], color=col, label=lab)) ret.append(dict(data=sep[n], color=col, label=lab))
# lines # lines