From 6c2d3f3bd8d6eeaf04e0a931ce39b8b52646e95a Mon Sep 17 00:00:00 2001 From: Lou DeGenaro Date: Mon, 12 Aug 2024 14:09:12 -0400 Subject: [PATCH] fix: cis benchmarks to catalog task, which mistakenly does not see all columns (#1657) * fix: allow sheet specification Signed-off-by: Lou DeGenaro * fix: number of columns is too small by 1 Signed-off-by: Lou DeGenaro * Fix: examine all columns Signed-off-by: Lou DeGenaro --------- Signed-off-by: Lou DeGenaro --- trestle/tasks/cis_xlsx_to_oscal_catalog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trestle/tasks/cis_xlsx_to_oscal_catalog.py b/trestle/tasks/cis_xlsx_to_oscal_catalog.py index 65788dae0..1fd5d52d5 100644 --- a/trestle/tasks/cis_xlsx_to_oscal_catalog.py +++ b/trestle/tasks/cis_xlsx_to_oscal_catalog.py @@ -78,7 +78,7 @@ def _translate(self, name: str) -> str: def _mapper(self) -> None: """Map columns heading names to column numbers.""" self._col_name_to_number = {} - cols = self._work_sheet.max_column + cols = self._work_sheet.max_column + 1 row = 1 for col in range(row, cols): cell = self._work_sheet.cell(row, col)