fix: album sort order on artist page

This commit is contained in:
cwilvx
2024-07-18 23:18:03 +03:00
parent c8c21dc01a
commit 2a1f178da2
+1 -1
View File
@@ -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": [],