mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
misc
This commit is contained in:
+3
-1
@@ -58,7 +58,7 @@ class ArtistsCache:
|
||||
"""
|
||||
Returns the cached albums for the given artisthash.
|
||||
"""
|
||||
for (index, albums) in enumerate(cls.artists):
|
||||
for index, albums in enumerate(cls.artists):
|
||||
if albums.artisthash == artisthash:
|
||||
return albums.albums, index
|
||||
|
||||
@@ -325,3 +325,5 @@ def get_similar_artists(artisthash: str):
|
||||
similar = random.sample(similar, limit)
|
||||
|
||||
return {"artists": similar[:limit]}
|
||||
|
||||
# TODO: Rewrite this file using generators where possible
|
||||
Reference in New Issue
Block a user