From f3fef31e8d0ff06054d0bf750382a4a9266f4e6f Mon Sep 17 00:00:00 2001 From: Zhao Date: Sun, 9 Oct 2022 06:34:19 +0700 Subject: [PATCH] Fix ranking csv file --- templates/contest/ranking-table.html | 3 ++- templates/contest/ranking.html | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/templates/contest/ranking-table.html b/templates/contest/ranking-table.html index 5779fe8..f74cd74 100644 --- a/templates/contest/ranking-table.html +++ b/templates/contest/ranking-table.html @@ -10,7 +10,7 @@ {% block after_rank %} {% if has_rating %} - {% if user.participation_rating %}{{ rating_number(user.participation_rating) }}{% endif %} + {% if user.participation_rating %}{{ rating_number(user.participation_rating) }}{% endif %} {% endif %} {% endblock %} @@ -57,6 +57,7 @@ {{- contest.get_label_for_problem(loop.index0) }}
{{ problem.points }}
+
{% endfor %} {% endblock %} diff --git a/templates/contest/ranking.html b/templates/contest/ranking.html index 087a905..b3813c4 100644 --- a/templates/contest/ranking.html +++ b/templates/contest/ranking.html @@ -88,9 +88,9 @@ return; } else if ($col.hasClass('username')) { header.push(clean_text($col.text())); - header.push("Name"); + header.push("Full name"); } else if ($col.hasClass('problem-score-col')) { - header.push($col.attr("title")); + header.push(clean_text($col.find('.problem-code').tex())); } else { header.push(clean_text($col.text())); } @@ -153,7 +153,10 @@ - {{ _('Download as CSV') }} + + + {{ _('Download as CSV') }} + {% include "contest/ranking-table.html" %} {% endblock %} \ No newline at end of file