From ce6d1cb1ef1cf841417192f3a77a3337b786771c Mon Sep 17 00:00:00 2001 From: cwilvx Date: Tue, 28 Jan 2025 06:42:27 +0300 Subject: [PATCH] fix: reversed album page items --- app/api/favorites.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/api/favorites.py b/app/api/favorites.py index 68dd2e28..5f9e684a 100644 --- a/app/api/favorites.py +++ b/app/api/favorites.py @@ -124,9 +124,8 @@ def get_favorite_albums(query: GetAllOfTypeQuery): Others will return -1 """ 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) + return {"albums": serialize_for_card_many(albums), "total": total} @@ -156,7 +155,6 @@ def get_favorite_artists(query: GetAllOfTypeQuery): start=query.start, limit=query.limit, ) - artists.reverse() artists = ArtistStore.get_artists_by_hashes(a.hash for a in artists) return {"artists": [serialize_artist(a) for a in artists], "total": total}