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

test for style check #443

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions dashboard/andalusian_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ def _get_works_and_score(self, work_mbids):
# one of them must be the score_work_id

# If the recording has no regular works, return the score
if len(score_works) == 1 and len(normal_works) == 0:
return score_works[0], []
if len(score_works)==1 and len(normal_works) == 0:
return score_works[ 0],[]
# If the recording has no score, return the regular works (may be empty)
elif len(score_works) == 0:
return None, normal_works
Expand All @@ -97,6 +97,7 @@ def _get_works_and_score(self, work_mbids):
return score_works[0], normal_works

def _add_works_from_relations(self, work_rel_list):
# test
# In andalusian, some works only exist to link to the score. We only want to add the other works

work_ids = [w["target"] for w in work_rel_list if w["type-id"] == release_importer.RELATION_RECORDING_WORK_PERFORMANCE]
Expand Down