🐛 skip empty exploration - Chenyu

This commit is contained in:
xtaodada 2024-04-28 11:24:01 +08:00
parent 7c9a532369
commit 45ef16d53f
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659
2 changed files with 17 additions and 14 deletions

View File

@ -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"),

View File

@ -43,6 +43,7 @@
</h2>
<div class="p-6 grid grid-cols-4 gap-4 text-center text-neutral-100">
{% for e in explorations %}
{% if e.id not in skip_explor %}
<div
class="w-full flex flex-col items-center rounded-lg p-2 space-y-1 bg-cover"
style="background-image: url('{{ e.cover }}');"
@ -57,6 +58,7 @@
></div>
</div>
</div>
{% endif %}
{% endfor %}
</div>
</div>