Skip to content

Commit

Permalink
Add comment explaining why we force calculating dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
gherceg committed Dec 3, 2024
1 parent 27b63a5 commit dc58ae4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions corehq/util/workbook_json/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ def __init__(self, worksheet, title=None):
break
else:
width += 1

# ensure _max_row and _max_column properties are set
self.worksheet.calculate_dimension(force=True)

def iterator():
Expand Down

0 comments on commit dc58ae4

Please sign in to comment.