From 368c0819bd434e64217030d71a6095fe243d8ab7 Mon Sep 17 00:00:00 2001 From: aronwk-aaron Date: Sat, 28 Oct 2023 00:38:33 -0500 Subject: [PATCH] lvl sanity check --- app/templates/partials/_charxml.html.j2 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/templates/partials/_charxml.html.j2 b/app/templates/partials/_charxml.html.j2 index 511c910..17bb739 100644 --- a/app/templates/partials/_charxml.html.j2 +++ b/app/templates/partials/_charxml.html.j2 @@ -11,9 +11,11 @@
U-Score: {{ character_json.obj.char.attr_ls }}
-
- Level: {{ character_json.obj.lvl.attr_l }} -
+ {% if "lvl" in character_json.obj. %} +
+ Level: {{ character_json.obj.lvl.attr_l }} +
+ {% endif %}