Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed Jul 5, 2024
1 parent 7598913 commit 04f5a91
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/GetStartEndDate.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 04f5a91

Please sign in to comment.