Fixed column names must be lower case for internal usage.

This commit is contained in:
Salvador E. Tropea 2020-08-05 19:55:01 -03:00
parent 61909127cd
commit 3e6648773f
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ def write_bom(filename, ext, groups, headings, cfg):
""" """
# Allow renaming the columns # Allow renaming the columns
head_names = [h if h.lower() not in cfg.column_rename else cfg.column_rename[h.lower()] for h in headings] head_names = [h if h.lower() not in cfg.column_rename else cfg.column_rename[h.lower()] for h in headings]
headings = [h.lower() for h in headings]
result = False result = False
# CSV file writing # CSV file writing
if ext in ["csv", "tsv", "txt"]: if ext in ["csv", "tsv", "txt"]: