Skip to content

Commit

Permalink
Fix datetime logic and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dalepotter committed May 5, 2016
1 parent f4cbd0a commit bf7b670
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stats/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
"""
Expand Down

0 comments on commit bf7b670

Please sign in to comment.