rm test.conf
This commit is contained in:
@@ -96,9 +96,11 @@ class LyricSearch(FastAPI):
|
||||
handler,
|
||||
methods=["POST"],
|
||||
include_in_schema=_schema_include,
|
||||
dependencies=[Depends(RateLimiter(times=times, seconds=seconds))]
|
||||
if not endpoint == "typeahead/lyrics"
|
||||
else None,
|
||||
dependencies=(
|
||||
[Depends(RateLimiter(times=times, seconds=seconds))]
|
||||
if not endpoint == "typeahead/lyrics"
|
||||
else None
|
||||
),
|
||||
)
|
||||
|
||||
async def typeahead_handler(self, data: ValidTypeAheadRequest) -> JSONResponse:
|
||||
@@ -243,9 +245,9 @@ class LyricSearch(FastAPI):
|
||||
if i + line_count <= len(lyric_lines):
|
||||
# Combine consecutive lines with space separator
|
||||
combined_lines = []
|
||||
line_positions: list[
|
||||
tuple[int, int]
|
||||
] = [] # Track where each line starts in combined text
|
||||
line_positions: list[tuple[int, int]] = (
|
||||
[]
|
||||
) # Track where each line starts in combined text
|
||||
combined_text_parts: list[str] = []
|
||||
|
||||
for j in range(line_count):
|
||||
|
||||
Reference in New Issue
Block a user