mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-03 20:13:02 +00:00
fixes for frontend card renderers
This commit is contained in:
@@ -16,6 +16,7 @@ def album_serializer(album: Album, to_remove: set[str]) -> dict:
|
||||
for artist in album_dict["albumartists"]:
|
||||
artist.pop("image", None)
|
||||
|
||||
album_dict["type"] = "album"
|
||||
return album_dict
|
||||
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ def serialize_for_card(artist: Artist):
|
||||
for key in props_to_remove:
|
||||
artist_dict.pop(key, None)
|
||||
|
||||
artist_dict["type"] = "artist"
|
||||
return artist_dict
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user