From 4ddff1837d91eb65a079cf9671cee66dbd5062f3 Mon Sep 17 00:00:00 2001 From: Micha Moskovic Date: Thu, 7 Dec 2023 11:51:17 +0100 Subject: [PATCH] Fix check of IPAC2023 script --- scripts/remove-wrong-ipac2023-authors/script.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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):