将比赛排名页面的错误次数换行显示

This commit is contained in:
virusdefender committed 2015-12-26 22:34:54 +08:00
1 parent 572753112c
commit 85c53aaf7d
2 files changed
+3 -1

No files matched your search

@@ -59,11 +59,13 @@
</td>
<td>{{ item.total_ac_number }} / {{ item.total_submission_number }}</td>
<td>{% if item.total_time %}{{ item.total_time|format_seconds }}{% else %}--{% endif %}</td>
{% autoescape off %}
{% for problem in contest_problems %}
<td class="{% get_submission_class item problem %}">
{% get_submission_content item problem %}
</td>
{% endfor %}
{% endautoescape %}
</tr>
{% endfor %}
</tbody>
+1 -1
View File
@@ -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 += "<br>(-" + str(submission["error_number"]) + ")"
return r
else:
return "(-" + str(submission["error_number"]) + ")"