Skip to content

Commit

Permalink
fix: cis benchmarks to catalog task, which mistakenly does not see al…
Browse files Browse the repository at this point in the history
…l columns (#1657)

* fix: allow sheet specification

Signed-off-by: Lou DeGenaro <lou.degenaro@gmail.com>

* fix: number of columns is too small by 1

Signed-off-by: Lou DeGenaro <lou.degenaro@gmail.com>

* Fix: examine all columns

Signed-off-by: Lou DeGenaro <lou.degenaro@gmail.com>

---------

Signed-off-by: Lou DeGenaro <lou.degenaro@gmail.com>
  • Loading branch information
degenaro authored Aug 12, 2024
1 parent 47e6936 commit 6c2d3f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trestle/tasks/cis_xlsx_to_oscal_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6c2d3f3

Please sign in to comment.