try: fix search

This commit is contained in:
cwilvx
2025-02-25 20:53:39 +03:00
parent 7daa20e0df
commit 0a1ab72932
11 changed files with 196 additions and 181 deletions
+1
View File
@@ -35,6 +35,7 @@ class Album:
id: int = -1
type: str = "album"
image: str = ""
_score: float = 0
versions: list[str] = dataclasses.field(default_factory=list)
fav_userids: list[int] = dataclasses.field(default_factory=list)
weakhash: str = ""
+1
View File
@@ -54,6 +54,7 @@ class Artist:
id: int = -1
image: str = ""
_score: float = 0
color: str = ""
fav_userids: list[int] = dataclasses.field(default_factory=list)
+1 -1
View File
@@ -27,7 +27,7 @@ class Playlist:
has_image: bool = False
images: list[dict[str, str]] = dataclasses.field(default_factory=list)
pinned: bool = False
_score: float = 0
def __post_init__(self):
self.count = len(self.trackhashes)
+1
View File
@@ -50,6 +50,7 @@ class Track:
_pos: int = 0
_ati: str = ""
image: str = ""
_score: float = 0
explicit: bool = False
fav_userids: list[int] = field(default_factory=list)