Skip to content

Commit

Permalink
Update src/ghga_transpiler/workbook_parser.py
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Zwerschke <[email protected]>
  • Loading branch information
sbilge and Cito authored Aug 20, 2024
1 parent 8b07585 commit b632c8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ghga_transpiler/workbook_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class WorksheetParser(BaseModel):

def _header(self, worksheet: Worksheet):
"""Return a list of column names of a worksheet."""
return list(
return [
cell.value
for row in worksheet.iter_rows(
self.config.settings.header_row,
Expand All @@ -39,7 +39,7 @@ def _header(self, worksheet: Worksheet):
self.config.settings.end_column,
)
for cell in row
)
]

def _rows(self, worksheet: Worksheet) -> list:
"""Create a list of rows of a worksheet."""
Expand Down

0 comments on commit b632c8f

Please sign in to comment.