pydantic docstrings
This commit is contained in:
@ -29,6 +29,7 @@ class Transcriptions(FastAPI):
|
||||
async def get_episodes_handler(self, data: ValidShowEpisodeListRequest) -> JSONResponse:
|
||||
"""
|
||||
Get list of episodes by show id
|
||||
- **s**: Show ID to query
|
||||
"""
|
||||
show_id: int = data.s
|
||||
db_path: Optional[Union[str, LiteralString]] = None
|
||||
@ -86,6 +87,8 @@ class Transcriptions(FastAPI):
|
||||
async def get_episode_lines_handler(self, data: ValidShowEpisodeLineRequest) -> JSONResponse:
|
||||
"""
|
||||
Get lines for a particular episode
|
||||
- **s**: Show ID to query
|
||||
- **e**: Episode ID to query
|
||||
"""
|
||||
show_id: int = int(data.s)
|
||||
episode_id: int = int(data.e)
|
||||
@ -124,5 +127,4 @@ class Transcriptions(FastAPI):
|
||||
'speaker': item[1].strip(),
|
||||
'line': item[2].strip(),
|
||||
} for item in result],
|
||||
})
|
||||
|
||||
})
|
Reference in New Issue
Block a user