Skip to content

Commit

Permalink
fix: worksheet index
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jan 16, 2025
1 parent ddccec7 commit fb46fbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions portal/templates/portal/teach/teacher_edit_class.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ <h6>Python Den levels</h6>
{% for level in episode.levels %}
{% for worksheet in episode.worksheets %}
{% if worksheet.before_level == level.id %}
<p>{{episode.name}}{% if episode.worksheets|length > 1 %} pt. {{ forloop.counter }}{% endif %}</p>
<p>{{episode.name}}{% if episode.worksheets|length > 1 %} pt. {{ worksheet.index }}{% endif %}</p>
{% endif %}
{% endfor %}
{% if level.name < 1010 %}
Expand All @@ -196,7 +196,7 @@ <h6>Python Den levels</h6>
{% endfor %}
{% for worksheet in episode.worksheets %}
{% if not worksheet.before_level %}
<p>{{episode.name}}{% if episode.worksheets|length > 1 %} pt. {{ forloop.counter }}{% endif %}</p>
<p>{{episode.name}}{% if episode.worksheets|length > 1 %} pt. {{ worksheet.index }}{% endif %}</p>
{% endif %}
{% endfor %}
</div>
Expand Down

0 comments on commit fb46fbd

Please sign in to comment.