From 45ef16d53f3ba7788756e4f8eeac1d7ae2f156b6 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 28 Apr 2024 11:24:01 +0800 Subject: [PATCH] :bug: skip empty exploration - Chenyu --- plugins/genshin/stats.py | 1 + resources/genshin/stats/stats.jinja2 | 30 +++++++++++++++------------- 2 files changed, 17 insertions(+), 14 deletions(-) diff --git a/plugins/genshin/stats.py b/plugins/genshin/stats.py index 874d0168..1701c131 100644 --- a/plugins/genshin/stats.py +++ b/plugins/genshin/stats.py @@ -71,6 +71,7 @@ class PlayerStatsPlugins(Plugin): "info": user_info.info, "stats": user_info.stats, "explorations": user_info.explorations, + "skip_explor": [10], "teapot": user_info.teapot, "stats_labels": [ ("活跃天数", "days_active"), diff --git a/resources/genshin/stats/stats.jinja2 b/resources/genshin/stats/stats.jinja2 index 8274a26d..16326c97 100644 --- a/resources/genshin/stats/stats.jinja2 +++ b/resources/genshin/stats/stats.jinja2 @@ -43,20 +43,22 @@
{% for e in explorations %} -
- -
{{ e.name }}
-
{{ e.explored }}%
-
-
-
-
+ {% if e.id not in skip_explor %} +
+ +
{{ e.name }}
+
{{ e.explored }}%
+
+
+
+
+ {% endif %} {% endfor %}