Skip to content

Commit

Permalink
Auto-format python code
Browse files Browse the repository at this point in the history
  • Loading branch information
PascalEgn authored and github-actions[bot] committed Sep 16, 2024
1 parent ff119c5 commit 6223e64
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/remove-classifier-keywords/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]


Expand Down

0 comments on commit 6223e64

Please sign in to comment.