fix: wrong albums appearing as appearances in artist page

This commit is contained in:
cwilvx
2024-07-28 17:12:00 +03:00
parent 56da0acd85
commit 16db3e1ad2
2 changed files with 1 additions and 14 deletions
-13
View File
@@ -38,7 +38,6 @@
- Watchdog - Watchdog
- Periodic scans - Periodic scans
- Remove legacy db methods - Remove legacy db methods
- Remove all stores
- Review: We don't need server side image colors - Review: We don't need server side image colors
- Clean up main db and userdata modules - Clean up main db and userdata modules
- Move plugins to a config file - Move plugins to a config file
@@ -46,21 +45,9 @@
- Add userid to queries - Add userid to queries
- Remove duplicates on artist page (test with Hanson) - Remove duplicates on artist page (test with Hanson)
- Test foreign keys on delete - Test foreign keys on delete
- Map scrobble info on app start
- Make home page recent items faster!
- Normalize playlists table: - Normalize playlists table:
- New table to hold playlist entries - New table to hold playlist entries
- Normalize similar artists: - Normalize similar artists:
- New table to hold similar artist entries - New table to hold similar artist entries
- Create 2 way relationships, such that if an artist A is similar to another B with a certain weight, - Create 2 way relationships, such that if an artist A is similar to another B with a certain weight,
then artist B is similar to A with the same weight, unless overwritten. then artist B is similar to A with the same weight, unless overwritten.
- Figure out how to update album/artist tables instead of deleting all rows when the app starts
- Move get all filtering and sorting operations to the database since all sort keys are table columns
- Replace the DbManager class with cls.execute()
- Paginate the following endpoints:
1. Folder tracks
2. Playlist tracks ⭐
- When you update a playlist, update the store as well!
+1 -1
View File
@@ -128,7 +128,7 @@ def get_artist_albums(path: ArtistHashSchema, query: GetArtistAlbumsQuery):
res["singles_and_eps"].append(album) res["singles_and_eps"].append(album)
elif album.type == "compilation": elif album.type == "compilation":
res["compilations"].append(album) 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) res["appearances"].append(album)
else: else:
res["albums"].append(album) res["albums"].append(album)