diff --git a/web_export_view/AUTHORS.txt b/web_export_view/AUTHORS.txt index d7fa72802..0ddb16414 100644 --- a/web_export_view/AUTHORS.txt +++ b/web_export_view/AUTHORS.txt @@ -4,3 +4,4 @@ Authors Simone Orsi [simahawk] Lorenzo Battistini Stefan Rijnhart +Cristian Salamea diff --git a/web_export_view/controllers.py b/web_export_view/controllers.py index 17234a234..4e4c6bd77 100644 --- a/web_export_view/controllers.py +++ b/web_export_view/controllers.py @@ -50,7 +50,7 @@ class ExcelExportView(ExcelExport): if isinstance(cell_value, basestring): cell_value = re.sub("\r", " ", cell_value) if re.match(m, cell_value): - cell_value = float(cell_value.replace(separators['thousands_sep'],'')replace(separators['decimal_point'],'.')) + cell_value = float(cell_value.replace(separators['thousands_sep'],'').replace(separators['decimal_point'],'.')) style = xlwt.easyxf(num_format_str='#,##0.00') if cell_value is False: cell_value = None worksheet.write(row_index + 1, cell_index, cell_value, style)