misc
This commit is contained in:
@ -125,13 +125,13 @@ class LyricSearch(FastAPI):
|
||||
"errorText": f"Unknown request source: {data.src}",
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
if data.a == "N/A" and data.s == "N/A":
|
||||
return JSONResponse(
|
||||
status_code=200,
|
||||
content={
|
||||
'test': 'success',
|
||||
}
|
||||
"test": "success",
|
||||
},
|
||||
)
|
||||
|
||||
if not data.t:
|
||||
|
@ -96,9 +96,9 @@ class Misc(FastAPI):
|
||||
"""
|
||||
# Measure response time w/ test lyric search
|
||||
time_start: float = time.time() # Start time for response_time
|
||||
test_lyrics_result = await self.redis_client.ft().search( # noqa: F841
|
||||
test_lyrics_result = await self.redis_client.ft().search( # noqa: F841
|
||||
"@artist: test @song: test"
|
||||
)
|
||||
)
|
||||
time_end: float = time.time()
|
||||
# End response time test
|
||||
total_keys = await self.redis_client.dbsize()
|
||||
|
Reference in New Issue
Block a user