From 7f4a200db9d60575b944e8e1964aaa515828790f Mon Sep 17 00:00:00 2001 From: Alastair Porter Date: Mon, 27 Apr 2020 17:14:54 +0200 Subject: [PATCH 1/2] test for style check --- dashboard/andalusian_importer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dashboard/andalusian_importer.py b/dashboard/andalusian_importer.py index 837a7047..da4c6700 100644 --- a/dashboard/andalusian_importer.py +++ b/dashboard/andalusian_importer.py @@ -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] From 51192cb3af27731e62e7958f5fdd00a68f9aa4c7 Mon Sep 17 00:00:00 2001 From: Alastair Porter Date: Mon, 27 Apr 2020 17:28:45 +0200 Subject: [PATCH 2/2] Break spacing --- dashboard/andalusian_importer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dashboard/andalusian_importer.py b/dashboard/andalusian_importer.py index da4c6700..d0aee9f0 100644 --- a/dashboard/andalusian_importer.py +++ b/dashboard/andalusian_importer.py @@ -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