Fix artist-hero-badges — add discogs_id to get_artist_discography

- discogs_id was missing from BOTH the SQL SELECT and the artist dict
  in get_artist_discography() — used by the library artist detail page
- This is the third location (after get_library_artists and
  discography endpoint) where discogs_id was in the DB but not
  included in the response
pull/253/head
Broque Thomas 2 months ago
parent cd0e8cf342
commit 58c3e589b6

@ -8077,7 +8077,7 @@ class MusicDatabase:
cursor.execute("""
SELECT
id, name, thumb_url, genres, server_source,
musicbrainz_id, deezer_id, audiodb_id,
musicbrainz_id, deezer_id, audiodb_id, discogs_id,
spotify_artist_id, itunes_artist_id, lastfm_url, genius_url,
tidal_id, qobuz_id, soul_id,
lastfm_listeners, lastfm_playcount, lastfm_tags, lastfm_bio
@ -8229,6 +8229,7 @@ class MusicDatabase:
'musicbrainz_id': artist_row['musicbrainz_id'],
'deezer_id': artist_row['deezer_id'],
'audiodb_id': artist_row['audiodb_id'],
'discogs_id': artist_row['discogs_id'],
'spotify_artist_id': artist_row['spotify_artist_id'],
'itunes_artist_id': artist_row['itunes_artist_id'],
'lastfm_url': artist_row['lastfm_url'],

Loading…
Cancel
Save