fix: folder endpoint returning same track for different files of the same trackhash

+ fix: chunked streaming. return instead of yield chunks
This commit is contained in:
cwilvx committed 2024-08-15 17:07:34 +03:00
1 parent cd992419c5
commit ca31054f48
18 files changed
+508 -138

No files matched your search

+3 -2
View File
@@ -14,7 +14,8 @@ def format_number(number: float) -> str:
return locale.format_string("%d", number, grouping=True)
def flatten(list_: Iterable[list[T]]) -> list[T]:
"""
Flattens a list of lists into a single list.
"""
return [item for sublist in list_ for item in sublist]