1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00

Update per_page to 100

This commit is contained in:
zhengxie
2016-04-09 11:44:39 +08:00
parent 4f1e2b849c
commit bca48cd876
2 changed files with 4 additions and 4 deletions

View File

@@ -51,10 +51,10 @@ def useradmin(request):
# Make sure page request is an int. If not, deliver first page.
try:
current_page = int(request.GET.get('page', '1'))
per_page = int(request.GET.get('per_page', '25'))
per_page = int(request.GET.get('per_page', '100'))
except ValueError:
current_page = 1
per_page = 25
per_page = 100
offset = per_page * (current_page - 1)
inst = request.user.institution

View File

@@ -2318,10 +2318,10 @@ def sys_inst_info_user(request, inst_id):
# Make sure page request is an int. If not, deliver first page.
try:
current_page = int(request.GET.get('page', '1'))
per_page = int(request.GET.get('per_page', '25'))
per_page = int(request.GET.get('per_page', '100'))
except ValueError:
current_page = 1
per_page = 25
per_page = 100
offset = per_page * (current_page - 1)
inst_admins = [x.user for x in InstitutionAdmin.objects.filter(institution=inst)]