From c648be6be1db015f50a032c7c85c89c4a7c556fb Mon Sep 17 00:00:00 2001 From: Frank Hunleth Date: Thu, 8 Dec 2016 20:55:02 -0500 Subject: [PATCH] Update for 2017 --- schedule.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/schedule.py b/schedule.py index 3a5cae6..2d1e588 100755 --- a/schedule.py +++ b/schedule.py @@ -3,19 +3,19 @@ import holidays ch = holidays.UnitedStates() -ch.update({ "2016-02-07": "Super Bowl Sunday", "2016-02-14": "Valentine's Day", - "2016-03-27": "Easter Sunday", "2016-05-08": "Mother's Day", - "2016-06-19": "Father's Day", "2016-07-03": "4th of July Weekend", - "2016-10-02": "Rosh Hashanah (begins at sundown)", "2016-11-27": +ch.update({ "2017-02-05": "Super Bowl Sunday", "2017-02-14": "Valentine's Day", + "2017-04-16": "Easter Sunday", "2017-05-14": "Mother's Day", + "2017-06-18": "Father's Day", "2017-07-02": "4th of July Weekend", + "2017-09-22": "Rosh Hashanah (begins at sundown)", "2017-11-26": "Thanksgiving Weekend"}) def secondsundays(d): - while d.year == 2016: + while d.year == 2017: yield d d += timedelta(days = 14) -start1 = date(2016, 1, 3) -start2 = date(2016, 1, 10) +start1 = date(2017, 1, 8) +start2 = date(2017, 1, 15) schedule1 = [d.strftime('%Y-%m-%d') for d in secondsundays(start1)] schedule2 = [d.strftime('%Y-%m-%d') for d in secondsundays(start2)]