Explorar el Código

Hotfix Leon's Problem

dustin.born hace 6 años
padre
commit
a5e90d907f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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:
 			for element in line:
 				element = element.replace(" ", "")
 				element = element.replace(" ", "")
 				key, value = element.split(":")
 				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
 	# writing the ElementTree into the .xml file
 	tree = ElementTree.ElementTree(root)
 	tree = ElementTree.ElementTree(root)