From 1f36ff6a13155d1203a50ac7c40ccef4904569e8 Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Fri, 20 Feb 2009 02:22:33 +0000 Subject: [PATCH] More code cleanup in get_day_list() with help from Kees Bakker. svn: r12052 --- src/plugins/webreport/WebCal.py | 91 +++++++++++++++++---------------- 1 file changed, 46 insertions(+), 45 deletions(-) diff --git a/src/plugins/webreport/WebCal.py b/src/plugins/webreport/WebCal.py index fc1d4faea..36d8949ba 100644 --- a/src/plugins/webreport/WebCal.py +++ b/src/plugins/webreport/WebCal.py @@ -426,7 +426,8 @@ class WebCalReport(Report): num_years = (self.end_year - self.start_year) cal_year = self.start_year - for rows in range((num_years // 16) + 1): + nrows = (num_years / 16) + for rows in range(0, (nrows + 1)): of.write('