mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-21 08:23:20 +00:00
将比赛排名页面的错误次数换行显示
This commit is contained in:
parent
572753112c
commit
85c53aaf7d
@ -59,11 +59,13 @@
|
|||||||
</td>
|
</td>
|
||||||
<td>{{ item.total_ac_number }} / {{ item.total_submission_number }}</td>
|
<td>{{ item.total_ac_number }} / {{ item.total_submission_number }}</td>
|
||||||
<td>{% if item.total_time %}{{ item.total_time|format_seconds }}{% else %}--{% endif %}</td>
|
<td>{% if item.total_time %}{{ item.total_time|format_seconds }}{% else %}--{% endif %}</td>
|
||||||
|
{% autoescape off %}
|
||||||
{% for problem in contest_problems %}
|
{% for problem in contest_problems %}
|
||||||
<td class="{% get_submission_class item problem %}">
|
<td class="{% get_submission_class item problem %}">
|
||||||
{% get_submission_content item problem %}
|
{% get_submission_content item problem %}
|
||||||
</td>
|
</td>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endautoescape %}
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -56,7 +56,7 @@ def get_submission_content(rank, problem):
|
|||||||
if submission["is_ac"]:
|
if submission["is_ac"]:
|
||||||
r = get_the_formatted_time(submission["ac_time"])
|
r = get_the_formatted_time(submission["ac_time"])
|
||||||
if submission["error_number"]:
|
if submission["error_number"]:
|
||||||
r += "(-" + str(submission["error_number"]) + ")"
|
r += "<br>(-" + str(submission["error_number"]) + ")"
|
||||||
return r
|
return r
|
||||||
else:
|
else:
|
||||||
return "(-" + str(submission["error_number"]) + ")"
|
return "(-" + str(submission["error_number"]) + ")"
|
||||||
|
Loading…
Reference in New Issue
Block a user