From a6b7747c3d6ce70f5eadadd2696f05dfa9b502d9 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Tue, 7 Jan 2025 10:18:39 +0000 Subject: [PATCH] fix: worksheet counter --- portal/templates/portal/teach/teacher_edit_class.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal/templates/portal/teach/teacher_edit_class.html b/portal/templates/portal/teach/teacher_edit_class.html index 19f5a4d13..42a8c62bf 100644 --- a/portal/templates/portal/teach/teacher_edit_class.html +++ b/portal/templates/portal/teach/teacher_edit_class.html @@ -196,7 +196,7 @@
Python Den levels
{% endfor %} {% for worksheet in episode.worksheets %} {% if not worksheet.before_level %} -

{{episode.name}}{% if episode.worksheets|length > 1 %} pt. {{ forloop.counter }}{% endif %}

+

{{episode.name}}{% if episode.counter > 0 %} pt. {{ forloop.counter }}{% endif %}

{% endif %} {% endfor %}