Pārlūkot izejas kodu

Hotfix Leon's Problem

dustin.born 6 gadi atpakaļ
vecāks
revīzija
a5e90d907f
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      code/ID2TLib/FileUtils.py

+ 2 - 2
code/ID2TLib/FileUtils.py

@@ -48,8 +48,8 @@ def parse_csv_to_xml(filepath: str):
 			for element in line:
 				element = element.replace(" ", "")
 				key, value = element.split(":")
-				packet.attrib[key] = value
-			packet.attrib["LineNumber"] = lineno
+				packet.attrib[key] = str(value)
+			packet.attrib["LineNumber"] = str(lineno)
 
 	# writing the ElementTree into the .xml file
 	tree = ElementTree.ElementTree(root)