From 2fda11bc9a3b7bbb3e06a62ddeee72f2835a27be Mon Sep 17 00:00:00 2001 From: HumanoidSandvichDispenser Date: Fri, 8 Nov 2024 12:51:09 -0800 Subject: [PATCH] Make PutScheduleForm inherit from ViewScheduleForm --- backend-flask/schedule.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend-flask/schedule.py b/backend-flask/schedule.py index 0199679..a66de56 100644 --- a/backend-flask/schedule.py +++ b/backend-flask/schedule.py @@ -69,10 +69,7 @@ def get(query: ViewScheduleForm, player: Player, **kwargs): "availability": availability } -class PutScheduleForm(BaseModel): - window_start: datetime.datetime - window_size_days: int = 7 - team_id: int +class PutScheduleForm(ViewScheduleForm): availability: list[int] def find_consecutive_blocks(arr: list[int]) -> list[tuple[int, int, int]]: