put rows inside <Data> when writing

This commit is contained in:
jan 2023-07-13 14:02:14 -07:00
parent 7e318b2001
commit 26ca1cd012

View File

@ -84,8 +84,9 @@ def write_devices(devices: Sequence[Device], el_map: ElementTree.Element) -> Non
el_bin.set('BinQuality', 'Pass' if passed else 'Fail')
el_bin.set('BinCount', str(bin_counts[bin_code]))
el_data = ElementTree.SubElement(el_device, 'Data')
for row_text in row_texts:
el_row = ElementTree.SubElement(el_device, 'Row')
el_row = ElementTree.SubElement(el_data, 'Row')
el_row.text = f'<![CDATA[{row_text}]]>'
# Device attribs