Skip to content

Commit 6e29004

Browse files
committed
ENG-8489 | enforce MAX_SIZE on .xls rendering just like was on .xlsx and display overflow banner if table exceeds MAX_SIZE limit
1 parent d5d9287 commit 6e29004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mfr/extensions/tabular/utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def parse_xlsx(wb, sheets):
160160
if getattr(ws, 'max_row', None) is None or getattr(ws, 'max_column', None) is None:
161161
raise CorruptedError
162162

163-
ncols = getattr(ws, "max_column", 0) or 0
163+
ncols = getattr(ws, "max_column", 0)
164164
max_cols = min(ncols, MAX_SIZE)
165165
header_row = next(ws.iter_rows(max_row=1, values_only=True), [])
166166
fields = fix_headers(list(header_row)[:max_cols])

0 commit comments

Comments
 (0)