将首页题目修改为每页40道
This commit is contained in:
1 parent
7375fc4b3f
commit
e4888417bf
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||||
|
|||||||
Reference in new issue
Block a user