使用关联查询提供性能

This commit is contained in:
virusdefender
2015-09-25 15:04:57 +08:00
parent f7a8b80b0c
commit e3d3fa7eb4
2 changed files with 5 additions and 5 deletions

View File

@@ -39,8 +39,8 @@
<th class="text-center">AC / 总提交</th>
<th class="text-center">用时 + 罚时</th>
{% for item in contest_problems %}
<th class="text-center"><a
href="/contest/{{ contest.id }}/problem/{{ item.id }}/">{{ item.sort_index }}</a>
<th class="text-center">
<a href="/contest/{{ contest.id }}/problem/{{ item.id }}/">{{ item.sort_index }}</a>
</th>
{% endfor %}
</tr>