mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 13:15:02 +00:00
fix: album sort order on artist page
This commit is contained in:
1 parent
c8c21dc01a
commit
2a1f178da2
1 file changed
+1
-1
+1
-1
@@ -113,7 +113,7 @@ def get_artist_albums(path: ArtistHashSchema, query: GetArtistAlbumsQuery):
|
|||||||
album.check_type(list(tracks), config.showAlbumsAsSingles)
|
album.check_type(list(tracks), config.showAlbumsAsSingles)
|
||||||
|
|
||||||
albums = [a for a in albumdict.values()]
|
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 = {
|
res = {
|
||||||
"albums": [],
|
"albums": [],
|
||||||
|
|||||||
Reference in new issue
Block a user