mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
fix: reversed album page items
This commit is contained in:
@@ -124,9 +124,8 @@ def get_favorite_albums(query: GetAllOfTypeQuery):
|
|||||||
Others will return -1
|
Others will return -1
|
||||||
"""
|
"""
|
||||||
fav_albums, total = FavoritesTable.get_fav_albums(query.start, query.limit)
|
fav_albums, total = FavoritesTable.get_fav_albums(query.start, query.limit)
|
||||||
fav_albums.reverse()
|
|
||||||
|
|
||||||
albums = AlbumStore.get_albums_by_hashes(a.hash for a in fav_albums)
|
albums = AlbumStore.get_albums_by_hashes(a.hash for a in fav_albums)
|
||||||
|
|
||||||
return {"albums": serialize_for_card_many(albums), "total": total}
|
return {"albums": serialize_for_card_many(albums), "total": total}
|
||||||
|
|
||||||
|
|
||||||
@@ -156,7 +155,6 @@ def get_favorite_artists(query: GetAllOfTypeQuery):
|
|||||||
start=query.start,
|
start=query.start,
|
||||||
limit=query.limit,
|
limit=query.limit,
|
||||||
)
|
)
|
||||||
artists.reverse()
|
|
||||||
|
|
||||||
artists = ArtistStore.get_artists_by_hashes(a.hash for a in artists)
|
artists = ArtistStore.get_artists_by_hashes(a.hash for a in artists)
|
||||||
return {"artists": [serialize_artist(a) for a in artists], "total": total}
|
return {"artists": [serialize_artist(a) for a in artists], "total": total}
|
||||||
|
|||||||
Reference in New Issue
Block a user