From: Roland Häder Date: Tue, 12 Sep 2023 10:06:54 +0000 (+0200) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3f486860a4fbb6785f94ff5da1be44ef34eff368;p=fba.git Continued: - some CSV files have their headers upper-case --- 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)