mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
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:
+2
-2
@@ -1,5 +1,5 @@
|
||||
import datetime
|
||||
from typing import Any
|
||||
from typing import Any, Literal
|
||||
from sqlalchemy import (
|
||||
JSON,
|
||||
Boolean,
|
||||
@@ -409,7 +409,7 @@ class LibDataTable(Base):
|
||||
)
|
||||
|
||||
@classmethod
|
||||
def find_one(cls, hash: str, type: str):
|
||||
def find_one(cls, hash: str, type: Literal["album", "artist"]):
|
||||
result = cls.execute(
|
||||
select(cls).where((cls.itemhash == hash) & (cls.itemtype == type))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user