mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-29 08:32:08 +00:00
修复比赛列表页顺序问题
This commit is contained in:
parent
f5bca2428b
commit
4e649d54e4
@ -338,7 +338,7 @@ def contest_list_page(request, page=1):
|
||||
所有比赛的列表页
|
||||
"""
|
||||
# 正常情况
|
||||
contests = Contest.objects.filter(visible=True)
|
||||
contests = Contest.objects.filter(visible=True).order_by("-create_time")
|
||||
|
||||
# 搜索的情况
|
||||
keyword = request.GET.get("keyword", None)
|
||||
|
Loading…
Reference in New Issue
Block a user