Skip to content

Commit

Permalink
Fix problem labels in contest detail page
Browse files Browse the repository at this point in the history
Use `contest.get_label_for_problem` to match ranking page
  • Loading branch information
hieplpvip committed Oct 22, 2023
1 parent 1ce5bb9 commit 5574b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/contest/contest.html
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ <h2 style="margin-bottom: 0.2em; float:left;"><i class="fa fa-fw fa-question-cir
<tbody>
{% for problem in contest_problems %}
<tr>
<td style="width: 1em;">{{loop.index}}</td>
<td style="width: 1em;">{{contest.get_label_for_problem(loop.index0)}}</td>
{% if request.user.is_authenticated %}
{% if problem.id in completed_problem_ids %}
<td style="width: 1em;">
Expand Down

0 comments on commit 5574b1b

Please sign in to comment.