From 08f651b73462a478c1d975c218d13783392a81fb Mon Sep 17 00:00:00 2001 From: jean-marie Place Date: Tue, 14 Sep 2021 22:45:42 +0200 Subject: [PATCH] fix export excel en neutralisant les formules comme chaine --- app/scodoc/sco_excel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/scodoc/sco_excel.py b/app/scodoc/sco_excel.py index c9551b692..b5f9879ed 100644 --- a/app/scodoc/sco_excel.py +++ b/app/scodoc/sco_excel.py @@ -224,6 +224,8 @@ class ScoExcelSheet: style -- style par défaut (dictionnaire cf. excel_make_style) de la feuille si non spécifié """ cell = WriteOnlyCell(self.ws, value or "") + if not (isinstance(value, int) or isinstance(value, float)): + cell.data_type = "s" # if style is not None and "fill" in style: # toto() if style is None: