From 85c53aaf7dbbeb781d6a24f2bd98b3db2d31cb48 Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Sat, 26 Dec 2015 22:34:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E6=AF=94=E8=B5=9B=E6=8E=92=E5=90=8D?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E9=94=99=E8=AF=AF=E6=AC=A1=E6=95=B0?= =?UTF-8?q?=E6=8D=A2=E8=A1=8C=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/src/oj/contest/contest_rank.html | 2 ++ utils/templatetags/contest.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/template/src/oj/contest/contest_rank.html b/template/src/oj/contest/contest_rank.html index 07ad665..8e681c5 100644 --- a/template/src/oj/contest/contest_rank.html +++ b/template/src/oj/contest/contest_rank.html @@ -59,11 +59,13 @@ {{ item.total_ac_number }} / {{ item.total_submission_number }} {% if item.total_time %}{{ item.total_time|format_seconds }}{% else %}--{% endif %} + {% autoescape off %} {% for problem in contest_problems %} {% get_submission_content item problem %} {% endfor %} + {% endautoescape %} {% endfor %} diff --git a/utils/templatetags/contest.py b/utils/templatetags/contest.py index cc02908..e9dad3a 100644 --- a/utils/templatetags/contest.py +++ b/utils/templatetags/contest.py @@ -56,7 +56,7 @@ def get_submission_content(rank, problem): if submission["is_ac"]: r = get_the_formatted_time(submission["ac_time"]) if submission["error_number"]: - r += "(-" + str(submission["error_number"]) + ")" + r += "
(-" + str(submission["error_number"]) + ")" return r else: return "(-" + str(submission["error_number"]) + ")"