fixt copy/paste error

This commit is contained in:
aronwk-aaron 2023-11-10 00:04:10 -06:00
parent 8ec3803786
commit 5c2721cd65

View File

@ -186,10 +186,10 @@ def remove_buffs():
"""Clears all buff from all characters""" """Clears all buff from all characters"""
chars = CharacterXML.query.all() chars = CharacterXML.query.all()
for char in chars: for char in chars:
character_xml = ET.XML(character_data.xml_data.replace("\"stt=", "\" stt=")) character_xml = ET.XML(char.xml_data.replace("\"stt=", "\" stt="))
dest = character_xml.find(".//buff...") dest = character_xml.find(".//buff...")
dest.remove(character_xml.find(".//buff")) dest.remove(character_xml.find(".//buff"))
character_data.save() char.save()
@click.command("gen_image_cache") @click.command("gen_image_cache")