From bf7b670eb834903b1aab9a8a3b3a183250de2b8f Mon Sep 17 00:00:00 2001 From: dalepotter Date: Thu, 5 May 2016 11:28:44 +0100 Subject: [PATCH] Fix datetime logic and documentation --- stats/dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stats/dashboard.py b/stats/dashboard.py index d9489e4aa83..16370d43ec0 100644 --- a/stats/dashboard.py +++ b/stats/dashboard.py @@ -756,7 +756,7 @@ def _forwardlooking_exclude_in_calculations(self, year=datetime.date.today().yea """ # Fix date is this is a leap year. Otherwise will cause issues if incrementing a year today = datetime.date.today() - if today.month == 2 and today.day() == 29: + if today.month == 2 and today.day == 29: today = datetime.date(2000, 3, 1) # If this activity has an end date, check that it will not end within the next six @@ -785,7 +785,7 @@ def _is_donor_publisher(self): @returns_dict def forwardlooking_excluded_activities(self): - """Outputs whether this activity is included for the purposes of forwardlooking calculations + """Outputs whether this activity is excluded for the purposes of forwardlooking calculations Returns iati-identifier and...: 0 if not excluded 1 if excluded """