misc/formatting ++ resolve #33 (restructured radio DBs, combined genre into track_file_map, revised query w/ INNER JOIN)
This commit is contained in:
@@ -77,7 +77,7 @@ class LyricSearch(FastAPI):
|
||||
handler,
|
||||
methods=["POST"],
|
||||
include_in_schema=_schema_include,
|
||||
dependencies=[Depends(RateLimiter(times=2, seconds=3))]
|
||||
dependencies=[Depends(RateLimiter(times=2, seconds=3))],
|
||||
)
|
||||
|
||||
async def typeahead_handler(self, data: ValidTypeAheadRequest) -> JSONResponse:
|
||||
@@ -170,10 +170,10 @@ class LyricSearch(FastAPI):
|
||||
)
|
||||
|
||||
if not result:
|
||||
if not data.lrc:
|
||||
await self.notifier.send(
|
||||
"DEBUG", f"Could not locate lyrics, request was:\n`{data}`"
|
||||
)
|
||||
# if not data.lrc:
|
||||
# await self.notifier.send(
|
||||
# "DEBUG", f"Could not locate lyrics, request was:\n`{data}`"
|
||||
# )
|
||||
return JSONResponse(
|
||||
content={
|
||||
"err": True,
|
||||
|
Reference in New Issue
Block a user