From 0e26998664739ccdd4b81d031f0154b57474477c Mon Sep 17 00:00:00 2001 From: "Rob G. Healey" Date: Thu, 19 Feb 2009 17:43:53 +0000 Subject: [PATCH] Fixed USA holidays problem. There was no holidays being listed. svn: r12040 --- src/plugins/lib/holidays.xml | 2 + src/plugins/webreport/WebCal.py | 65 ++++++++++++++++----------------- 2 files changed, 33 insertions(+), 34 deletions(-) diff --git a/src/plugins/lib/holidays.xml b/src/plugins/lib/holidays.xml index ee62f403d..7d8508581 100644 --- a/src/plugins/lib/holidays.xml +++ b/src/plugins/lib/holidays.xml @@ -1,5 +1,7 @@ + + diff --git a/src/plugins/webreport/WebCal.py b/src/plugins/webreport/WebCal.py index 34c9e6fb7..fc1d4faea 100644 --- a/src/plugins/webreport/WebCal.py +++ b/src/plugins/webreport/WebCal.py @@ -426,8 +426,7 @@ class WebCalReport(Report): num_years = (self.end_year - self.start_year) cal_year = self.start_year - nrows = (num_years / 16) - for rows in range(0, (nrows + 1)): + for rows in range((num_years // 16) + 1): of.write('