fixes for frontend card renderers

This commit is contained in:
cwilvx
2025-01-29 12:31:18 +03:00
parent 0c3a55b9ce
commit f6afe048e4
5 changed files with 94 additions and 41 deletions
+1
View File
@@ -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
+1
View File
@@ -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