fix: add type annotations to untyped query parameters (#73) #86
@ -81,7 +81,7 @@ async def get_team_standings(team_id: int):
|
||||
@router.patch("/{stan_id}", include_in_schema=PRIVATE_IN_SCHEMA)
|
||||
@handle_db_errors
|
||||
async def patch_standings(
|
||||
stan_id,
|
||||
stan_id: int,
|
||||
wins: Optional[int] = None,
|
||||
losses: Optional[int] = None,
|
||||
token: str = Depends(oauth2_scheme),
|
||||
|
||||
@ -36,7 +36,7 @@ class TransactionList(pydantic.BaseModel):
|
||||
@router.get("")
|
||||
@handle_db_errors
|
||||
async def get_transactions(
|
||||
season,
|
||||
season: int,
|
||||
team_abbrev: list = Query(default=None),
|
||||
week_start: Optional[int] = 0,
|
||||
week_end: Optional[int] = None,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user