Minor tweaks to use slices instead of lists of items

svn: r12705
This commit is contained in:
Gerald Britton
2009-06-25 13:41:16 +00:00
parent a52bc62be9
commit fdfacd972c
9 changed files with 12 additions and 17 deletions

View File

@@ -555,9 +555,9 @@ class StatisticsChart(Report):
for data in self.data:
self.doc.start_page()
if len(data[2]) < self.bar_items:
self.output_piechart(data[0], data[1], data[2], data[3])
self.output_piechart(data[:4])
else:
self.output_barchart(data[0], data[1], data[2], data[3])
self.output_barchart(data[:4])
self.doc.end_page()
self.progress.step()
self.progress.close()