Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Release Group Artist Credits are duplicated #2999

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anshg1214
Copy link
Member

This PR fixes the Release Group Artist Credits which are duplicated due to the second join to the artist_credit_name.

@pep8speaks
Copy link

Hello @anshg1214! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 422:1: W391 blank line at end of file

Copy link
Member

@mayhem mayhem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you run this on wolf?

@@ -85,7 +85,7 @@ def create_json_data(self, row):
"name": release_group_name,
"mbid": release_group_mbid,
"artist_credit_name": artist_credit_name,
"artists": release_group_artists
"artists": sorted(release_group_artists, key=lambda x: x.pop("position", float('inf')))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you using pop() here? Did you want to modify the list or simply dereference it>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants