]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Tue, 12 Sep 2023 10:06:54 +0000 (12:06 +0200)
committerRoland Häder <roland@mxchange.org>
Tue, 12 Sep 2023 10:06:54 +0000 (12:06 +0200)
- some CSV files have their headers upper-case

fba/helpers/processing.py

index 116aa2fa14967a06dfcde715a381ee71af27f7a8..5f4f23e5f73a888f6e2d88dc78bf0a4421965124 100644 (file)
@@ -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)