diff --git a/scripts/remove-wrong-ipac2023-authors/script.py b/scripts/remove-wrong-ipac2023-authors/script.py index 24a20e8..c4de2e1 100644 --- a/scripts/remove-wrong-ipac2023-authors/script.py +++ b/scripts/remove-wrong-ipac2023-authors/script.py @@ -19,9 +19,10 @@ class RemoveWrongIPAC2023Authors(SearchCheckDo): @staticmethod def check(record, logger, state): - CNUM in record.get_value("publication_info.cnum", []) and record.get_value( - "authors.full_name", [] - ) == AUTHOR_LIST + return ( + CNUM in record.get_value("publication_info.cnum", []) + and record.get_value("authors.full_name", []) == AUTHOR_LIST + ) @staticmethod def do(record, logger, state):