mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
fix: wrong albums appearing as appearances in artist page
This commit is contained in:
+1
-1
@@ -128,7 +128,7 @@ def get_artist_albums(path: ArtistHashSchema, query: GetArtistAlbumsQuery):
|
||||
res["singles_and_eps"].append(album)
|
||||
elif album.type == "compilation":
|
||||
res["compilations"].append(album)
|
||||
elif album.albumhash in missing_albumhashes:
|
||||
elif album.albumhash in missing_albumhashes or artisthash not in album.artisthashes:
|
||||
res["appearances"].append(album)
|
||||
else:
|
||||
res["albums"].append(album)
|
||||
|
||||
Reference in New Issue
Block a user