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:
@@ -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
|
||||
|
@@ -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)]
|
||||
|
Reference in New Issue
Block a user