Skip to content

Commit

Permalink
Fix loading artist incs for releases
Browse files Browse the repository at this point in the history
I introduced this bug in #96. Fix by using the correct entity in joinedload.
  • Loading branch information
amCap1712 committed Oct 8, 2022
1 parent 7d77fcc commit 46559c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brainzutils/musicbrainz_db/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)
Expand Down

0 comments on commit 46559c4

Please sign in to comment.