From 46559c46c816602cca100e34b875f63212afcd31 Mon Sep 17 00:00:00 2001 From: Kartik Ohri Date: Fri, 7 Oct 2022 16:48:11 +0530 Subject: [PATCH] Fix loading artist incs for releases I introduced this bug in #96. Fix by using the correct entity in joinedload. --- brainzutils/musicbrainz_db/release.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brainzutils/musicbrainz_db/release.py b/brainzutils/musicbrainz_db/release.py index 7d7dad4..8ff8820 100644 --- a/brainzutils/musicbrainz_db/release.py +++ b/brainzutils/musicbrainz_db/release.py @@ -49,7 +49,7 @@ def fetch_multiple_releases(mbids, includes=None): query = query.options(joinedload(Release.release_group)) if 'artists' in includes: query = query.options( - joinedload(Recording.artist_credit). + joinedload(Release.artist_credit). joinedload(ArtistCredit.artists). joinedload(ArtistCreditName.artist) )