From 6223e649e353233f95d47f5ea0f61657bae33c86 Mon Sep 17 00:00:00 2001 From: PascalEgn Date: Mon, 16 Sep 2024 11:22:25 +0000 Subject: [PATCH] Auto-format python code --- scripts/remove-classifier-keywords/script.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/remove-classifier-keywords/script.py b/scripts/remove-classifier-keywords/script.py index af3b685..2a4278f 100644 --- a/scripts/remove-classifier-keywords/script.py +++ b/scripts/remove-classifier-keywords/script.py @@ -18,11 +18,13 @@ def check(record, logger, state): @staticmethod def do(record, logger, state): new_keywords = [ - keyword for keyword in record.get("keywords", []) if keyword.get("source", "") != "classifier" + keyword + for keyword in record.get("keywords", []) + if keyword.get("source", "") != "classifier" ] if new_keywords: record["keywords"] = new_keywords - else: + else: del record["keywords"]