From 04f5a9110a10fcca935290739ad5995ee4051a41 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Fri, 5 Jul 2024 17:18:07 +0200 Subject: [PATCH] update --- app/GetStartEndDate.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/GetStartEndDate.py b/app/GetStartEndDate.py index 124968d..144375b 100755 --- a/app/GetStartEndDate.py +++ b/app/GetStartEndDate.py @@ -18,7 +18,6 @@ def check_if_holiday(self): datetime(2024, 2, 19): 'washington_birthday', datetime(2024, 5, 27): 'memorial_day', datetime(2024, 7, 4): 'independence_day', - datetime(2024, 7, 5): 'independence_day+1', } for date, name in holiday_dates.items(): @@ -71,12 +70,11 @@ def run(self): 'washington_birthday': datetime(2024, 2, 16), 'memorial_day': datetime(2024, 5, 24), 'independence_day': datetime(2024, 7, 3), - 'independence_day+1': datetime(2024, 7, 3), } if holiday in holiday_dates: end_date_1d = holiday_dates[holiday] - elif holiday in ['independence_day+1', 'labor_day+1', 'christmas_day+1'] and not is_afternoon: + elif holiday in ['independence_day+1','labor_day+1', 'christmas_day+1'] and not is_afternoon: end_date_1d = holiday_dates[holiday] else: end_date_1d = self.current_datetime