From 2a1f178da29a68adad5baa7010715202c2b39983 Mon Sep 17 00:00:00 2001 From: cwilvx Date: Thu, 18 Jul 2024 23:18:03 +0300 Subject: [PATCH] fix: album sort order on artist page --- app/api/artist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/artist.py b/app/api/artist.py index eb119183..96d7ad74 100644 --- a/app/api/artist.py +++ b/app/api/artist.py @@ -113,7 +113,7 @@ def get_artist_albums(path: ArtistHashSchema, query: GetArtistAlbumsQuery): album.check_type(list(tracks), config.showAlbumsAsSingles) albums = [a for a in albumdict.values()] - all_albums = sorted(albums, key=lambda a: str(a.date), reverse=True) + all_albums = sorted(albums, key=lambda a: a.date, reverse=True) res = { "albums": [],