From 122ba5e35352d86b69e57b663cee3d36b23bd6a4 Mon Sep 17 00:00:00 2001 From: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com> Date: Wed, 21 Oct 2020 16:35:58 +0530 Subject: [PATCH] fix: Use cint to convert column_width to int Co-authored-by: Prssanna Desai --- frappe/desk/query_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/desk/query_report.py b/frappe/desk/query_report.py index b9be0ad683..3008cf0e61 100644 --- a/frappe/desk/query_report.py +++ b/frappe/desk/query_report.py @@ -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)