mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-01-06 04:21:51 +00: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"标签不存在")
|
||||
problems = tag.problem_set.all().filter(visible=True)
|
||||
|
||||
paginator = Paginator(problems, 20)
|
||||
paginator = Paginator(problems, 40)
|
||||
try:
|
||||
current_page = paginator.page(int(page))
|
||||
except Exception:
|
||||
|
Loading…
Reference in New Issue
Block a user