Skip to content

Commit 7f0ccd8

Browse files
committed
fix the end of the week and put new final date
1 parent d28a65c commit 7f0ccd8

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

core/routes.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,9 @@ async def schoolweektoday(request):
266266

267267
@root.get('/schoolweek/<requested_date_str>')
268268
async def schoolweek(request, requested_date_str):
269-
# TODO: webscrape online calendar to get days off
270-
# TODO: possibly save days in sql db so email notifs can quickly access the day without processing all the info every time
271269
requested_date = date(*map(int, requested_date_str.split('-')))
272270
first_day = date(2020, 9, 8)
273-
if not first_day <= requested_date <= date(2021, 6, 11):
271+
if not first_day <= requested_date <= date(2021, 3, 11):
274272
abort(404, message=f'Requested URL {request.path} not found')
275273

276274
week_fmt = await get_school_week(requested_date, first_day, week=True)

core/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ async def get_school_week(requested_date: date, first_day: date, week=True):
154154
date(2020, 10, 2),
155155
date(2021, 2, 1), # Snow day 2 (first snow day didn't affect A/B days)
156156
date(2021, 2, 9), # Idk why they messed up the days in the first place only to mess it up to "fix" it again
157-
date(2021, 2, 24) # dumb schedule again
157+
date(2021, 2, 24), # dumb schedule again
158+
date(2021, 3, 12) # no more hybrid schedule, just fix the last day of the week
158159
]
159160

160161
all_days = []

0 commit comments

Comments
 (0)