refactoring
This commit is contained in:
@@ -9,27 +9,7 @@ import json
|
||||
from aiohttp import ClientSession, ClientTimeout
|
||||
from fastapi import FastAPI, Request, HTTPException, BackgroundTasks
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class ValidAISongRequest(BaseModel):
|
||||
"""
|
||||
- **a**: artist
|
||||
- **s**: track title
|
||||
"""
|
||||
|
||||
a: str
|
||||
s: str
|
||||
|
||||
class ValidHookSongRequest(BaseModel):
|
||||
"""
|
||||
- **a**: artist
|
||||
- **s**: track title
|
||||
- **hook**: hook to return
|
||||
"""
|
||||
|
||||
a: str
|
||||
s: str
|
||||
hook: str | None = ""
|
||||
from .constructors import ValidHookSongRequest, ValidAISongRequest
|
||||
|
||||
# pylint: enable=bad-indentation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user