将比赛排名页面的错误次数换行显示
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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"]) + ")"
|
||||
|
||||
Reference in New Issue
Block a user