fix: Use cint to convert column_width to int

Co-authored-by: Prssanna Desai <prssud@gmail.com>
This commit is contained in:
Suraj Shetty 2020-10-21 16:35:58 +05:30 committed by GitHub
parent 5b97d66778
commit 122ba5e353
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -386,7 +386,7 @@ def build_xlsx_data(columns, data, visible_idx, include_indentation):
if column.get("hidden"):
continue
result[0].append(column["label"])
column_width = column.get('width', 0)
column_width = cint(column.get('width', 0))
# to convert into scale accepted by openpyxl
column_width /= 10
column_widths.append(column_width)