mirror of
https://github.com/DarkflameUniverse/NexusDashboard.git
synced 2024-11-21 21:17:23 +00:00
show clone id on props page
This commit is contained in:
parent
01e304a041
commit
7ca62fe478
@ -5,7 +5,7 @@ import string
|
||||
import datetime
|
||||
from flask_user import current_app
|
||||
from app import db
|
||||
from app.models import Account, PlayKey, CharacterInfo, Property, PropertyContent, UGC, Mail
|
||||
from app.models import Account, PlayKey, CharacterInfo, Property, PropertyContent, UGC, Mail, CharacterXML
|
||||
import pathlib
|
||||
import zlib
|
||||
from wand import image
|
||||
@ -180,6 +180,17 @@ def load_property(zone, player):
|
||||
)
|
||||
new_prop_content.save()
|
||||
|
||||
@click.command("remove_buffs")
|
||||
@with_appcontext
|
||||
def remove_buffs():
|
||||
"""Clears all buff from all characters"""
|
||||
chars = CharacterXML.query.all()
|
||||
for char in chars:
|
||||
character_xml = ET.XML(character_data.xml_data.replace("\"stt=", "\" stt="))
|
||||
dest = character_xml.find(".//buff...")
|
||||
dest.remove(character_xml.find(".//buff"))
|
||||
character_data.save()
|
||||
|
||||
|
||||
@click.command("gen_image_cache")
|
||||
def gen_image_cache():
|
||||
|
@ -77,6 +77,14 @@
|
||||
{{ property.performance_cost }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col text-right">
|
||||
Clone ID:
|
||||
</div>
|
||||
<div class="col">
|
||||
{{ property.clone_id }}
|
||||
</div>
|
||||
</div>
|
||||
{% if request.endpoint != "properties.view" %}
|
||||
<br/>
|
||||
<div class="row">
|
||||
|
Loading…
Reference in New Issue
Block a user