From 3f486860a4fbb6785f94ff5da1be44ef34eff368 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 12 Sep 2023 12:06:54 +0200 Subject: [PATCH] Continued: - some CSV files have their headers upper-case --- fba/helpers/processing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fba/helpers/processing.py b/fba/helpers/processing.py index 116aa2f..5f4f23e 100644 --- a/fba/helpers/processing.py +++ b/fba/helpers/processing.py @@ -168,6 +168,8 @@ def csv_block(blocker: str, url: str, command: str): reason = tidup.reason(row["reason"]) if row["reason"] != None and row["reason"] != "" else None elif "comment" in row: reason = tidup.reason(row["comment"]) if row["comment"] != None and row["comment"] != "" else None + elif "Comment" in row: + reason = tidup.reason(row["Comment"]) if row["Comment"] != None and row["Comment"] != "" else None else: logger.debug("row='%s' has no reason/comment key provided", row) -- 2.39.5