Make PutScheduleForm inherit from ViewScheduleForm

master
John Montagu, the 4th Earl of Sandvich 2024-11-08 12:51:09 -08:00
parent 5d620c07ed
commit 2fda11bc9a
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
1 changed files with 1 additions and 4 deletions

View File

@ -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]]: