From dc58ae4fa337cf777e428b99cba269ffc669eeb8 Mon Sep 17 00:00:00 2001 From: Graham Herceg Date: Tue, 3 Dec 2024 13:59:33 -0500 Subject: [PATCH] Add comment explaining why we force calculating dimensions --- corehq/util/workbook_json/excel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/corehq/util/workbook_json/excel.py b/corehq/util/workbook_json/excel.py index 8f9affcf85f9..613c1d9e60c0 100644 --- a/corehq/util/workbook_json/excel.py +++ b/corehq/util/workbook_json/excel.py @@ -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():