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 b632c8f commit e7c288f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ghga_transpiler/workbook_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def _header(self, worksheet: Worksheet):
]

def _rows(self, worksheet: Worksheet) -> list:
"""Create a list of rows of a worksheet."""
return list(
"""Create a list of non-empty rows of a worksheet."""
return [
row
for row in worksheet.iter_rows(
self.config.settings.start_row,
Expand All @@ -53,7 +53,7 @@ def _rows(self, worksheet: Worksheet) -> list:
values_only=True,
)
if not all(cell is None for cell in row)
)
]

def _content(self, worksheet: Worksheet) -> list[dict]:
"""Compute and return the content of the worksheet, rows as worksheet row values and
Expand Down

0 comments on commit e7c288f

Please sign in to comment.