Merge pull request 'fix export excel en neutralisant les formules comme chaine' (#124) from jmplace/ScoDoc-Lille:fix_formula into master

Reviewed-on: https://scodoc.org/git/viennet/ScoDoc/pulls/124
This commit is contained in:
Emmanuel Viennet 2021-09-14 23:10:47 +02:00
commit b06f37b18e

View File

@ -224,6 +224,8 @@ class ScoExcelSheet:
style -- style par défaut (dictionnaire cf. excel_make_style) de la feuille si non spécifié style -- style par défaut (dictionnaire cf. excel_make_style) de la feuille si non spécifié
""" """
cell = WriteOnlyCell(self.ws, value or "") 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: # if style is not None and "fill" in style:
# toto() # toto()
if style is None: if style is None: