xml generation fix

This commit is contained in:
Karl Hudgell 2024-12-13 12:45:38 +00:00
parent 9cb3ae88d2
commit e82f22bd31

View File

@ -19,7 +19,7 @@ def create_config_xml(folder_path):
uid = os.path.splitext(filename)[0]
# Create a record for each file
ET.SubElement(maps, "record", from_=uid, to=f"graphics/pictures/person/r-{uid}/portrait")
ET.SubElement(maps, "record", attrib={"from": uid, "to": f"graphics/pictures/person/r-{uid}/portrait"})
# Create the XML tree
tree = ET.ElementTree(root)