From a10b8d79753fb221efb03c2d5230892f53007625 Mon Sep 17 00:00:00 2001 From: aronwk-aaron Date: Fri, 10 Nov 2023 00:30:03 -0600 Subject: [PATCH] fix it --- app/commands.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/commands.py b/app/commands.py index 34f03b1..a5b72da 100644 --- a/app/commands.py +++ b/app/commands.py @@ -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"""