fix search to read from database

This commit is contained in:
geoffrey45
2022-06-16 09:36:42 +03:00
parent 88247e0553
commit 79a7161827
12 changed files with 67 additions and 64 deletions
+3 -2
View File
@@ -185,8 +185,9 @@ class Get:
a = instances.album_instance.get_all_albums()
return [models.Album(a) for a in a]
def get_all_artists(self) -> Set[str]:
tracks = self.get_all_tracks()
@classmethod
def get_all_artists(cls) -> Set[str]:
tracks = cls.get_all_tracks()
artists: Set[str] = set()
for track in tracks: