ui: Don't count label in flag count

This commit is contained in:
nemunaire 2023-04-05 18:20:38 +02:00
parent b79fe47f00
commit 18b8f0f722

View File

@ -161,7 +161,7 @@
class="rounded-0"
barClassName="text-light"
>
{exercice.flags.length}/{exercice.nb_flags}
{exercice.flags.filter((f) => f.type != "label").length}/{exercice.nb_flags}
</Progress>
{/if}
{#if exercice.tries || exercice.solved_time || exercice.submitted || sberr || timeouted}