From 9c5408f50331c209bf2911b02b57df0cf26dec37 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 24 Sep 2021 00:33:18 +0200 Subject: [PATCH] Fix: export tables en XML si id de colonnes numeriques --- app/scodoc/gen_tables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scodoc/gen_tables.py b/app/scodoc/gen_tables.py index 223feddaf..88beeb762 100644 --- a/app/scodoc/gen_tables.py +++ b/app/scodoc/gen_tables.py @@ -573,7 +573,7 @@ class GenTable(object): """ doc = ElementTree.Element( self.xml_outer_tag, - id=self.table_id, + id=str(self.table_id), origin=self.origin or "", caption=self.caption or "", ) @@ -587,7 +587,7 @@ class GenTable(object): v = row.get(cid, "") if v is None: v = "" - x_cell = ElementTree.Element(cid, value=str(v)) + x_cell = ElementTree.Element(str(cid), value=str(v)) x_row.append(x_cell) return sco_xml.XML_HEADER + ElementTree.tostring(doc).decode(scu.SCO_ENCODING)