Skip to content

Commit

Permalink
fix: number of columns is too small by 1
Browse files Browse the repository at this point in the history
Signed-off-by: Lou DeGenaro <lou.degenaro@gmail.com>
  • Loading branch information
degenaro committed Aug 9, 2024
1 parent 667680a commit 1c1e4d9
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 @@ -81,7 +81,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 1c1e4d9

Please sign in to comment.