Make PutScheduleForm inherit from ViewScheduleForm
parent
5d620c07ed
commit
2fda11bc9a
|
@ -69,10 +69,7 @@ def get(query: ViewScheduleForm, player: Player, **kwargs):
|
||||||
"availability": availability
|
"availability": availability
|
||||||
}
|
}
|
||||||
|
|
||||||
class PutScheduleForm(BaseModel):
|
class PutScheduleForm(ViewScheduleForm):
|
||||||
window_start: datetime.datetime
|
|
||||||
window_size_days: int = 7
|
|
||||||
team_id: int
|
|
||||||
availability: list[int]
|
availability: list[int]
|
||||||
|
|
||||||
def find_consecutive_blocks(arr: list[int]) -> list[tuple[int, int, int]]:
|
def find_consecutive_blocks(arr: list[int]) -> list[tuple[int, int, int]]:
|
||||||
|
|
Loading…
Reference in New Issue