mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-08-30 18:12:11 +00:00
fix it
This commit is contained in:
parent
1c9ee91b78
commit
a10b8d7975
@ -187,12 +187,14 @@ def remove_buffs():
|
|||||||
chars = CharacterXML.query.all()
|
chars = CharacterXML.query.all()
|
||||||
for char in chars:
|
for char in chars:
|
||||||
character_xml = ET.XML(char.xml_data.replace("\"stt=", "\" stt="))
|
character_xml = ET.XML(char.xml_data.replace("\"stt=", "\" stt="))
|
||||||
dest = character_xml.find(".//buff...")
|
dest = character_xml.find(".//dest")
|
||||||
if 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()
|
char.save()
|
||||||
|
|
||||||
|
|
||||||
@click.command("gen_image_cache")
|
@click.command("gen_image_cache")
|
||||||
def gen_image_cache():
|
def gen_image_cache():
|
||||||
"""generates image cache"""
|
"""generates image cache"""
|
||||||
|
Loading…
Reference in New Issue
Block a user