cleanup
This commit is contained in:
parent
f2f0426498
commit
50500ad2c4
@ -19,6 +19,7 @@ class ValidLyricRequest(BaseModel):
|
|||||||
- **sub**: text to search within lyrics, if found lyrics will begin at found verse [optional, default: none]
|
- **sub**: text to search within lyrics, if found lyrics will begin at found verse [optional, default: none]
|
||||||
- **src**: the script/utility which initiated the request
|
- **src**: the script/utility which initiated the request
|
||||||
"""
|
"""
|
||||||
|
|
||||||
a: str | None = None
|
a: str | None = None
|
||||||
s: str | None = None
|
s: str | None = None
|
||||||
t: str | None = None
|
t: str | None = None
|
||||||
@ -59,7 +60,6 @@ class LyricSearch(FastAPI):
|
|||||||
- **src**: the script/utility which initiated the request
|
- **src**: the script/utility which initiated the request
|
||||||
"""
|
"""
|
||||||
|
|
||||||
print(f"HI, DATA:\n{data}")
|
|
||||||
src = data.src.upper()
|
src = data.src.upper()
|
||||||
if not(src in self.acceptable_request_sources):
|
if not(src in self.acceptable_request_sources):
|
||||||
raise HTTPException(detail="Invalid request source", status_code=403)
|
raise HTTPException(detail="Invalid request source", status_code=403)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user