This commit is contained in:
aronwk-aaron 2023-11-10 00:30:03 -06:00
parent 1c9ee91b78
commit a10b8d7975

View File

@ -187,12 +187,14 @@ def remove_buffs():
chars = CharacterXML.query.all()
for char in chars:
character_xml = ET.XML(char.xml_data.replace("\"stt=", "\" stt="))
dest = character_xml.find(".//buff...")
dest = character_xml.find(".//dest")
if dest:
dest.remove(character_xml.find(".//buff"))
buff = character_xml.find(".//buff")
if buff:
dest.remove(buff)
char.xml_data = ET.tostring(character_xml)
char.save()
@click.command("gen_image_cache")
def gen_image_cache():
"""generates image cache"""