mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
将首页题目修改为每页40道
This commit is contained in:
parent
7375fc4b3f
commit
e4888417bf
@ -294,7 +294,7 @@ def problem_list_page(request, page=1):
|
|||||||
return error_page(request, u"标签不存在")
|
return error_page(request, u"标签不存在")
|
||||||
problems = tag.problem_set.all().filter(visible=True)
|
problems = tag.problem_set.all().filter(visible=True)
|
||||||
|
|
||||||
paginator = Paginator(problems, 20)
|
paginator = Paginator(problems, 40)
|
||||||
try:
|
try:
|
||||||
current_page = paginator.page(int(page))
|
current_page = paginator.page(int(page))
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user