From 3a526e0ca75b23b1d6edf61956af4081ea5d5645 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Mon, 6 Jan 2025 21:23:33 +1300 Subject: [PATCH] merge #408 --- app/admin/routes.py | 2 +- app/templates/admin/users.html | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/app/admin/routes.py b/app/admin/routes.py index d4297500..2a58375c 100644 --- a/app/admin/routes.py +++ b/app/admin/routes.py @@ -1182,7 +1182,7 @@ def admin_users(): if last_seen > 0: users = users.filter(User.last_seen > utcnow() - timedelta(days=last_seen)) users = users.order_by(text('"user".' + sort_by)) - users = users.paginate(page=page, per_page=1000, error_out=False) + users = users.paginate(page=page, per_page=500, error_out=False) next_url = url_for('admin.admin_users', page=users.next_num, search=search, local_remote=local_remote, sort_by=sort_by, last_seen=last_seen) if users.has_next else None prev_url = url_for('admin.admin_users', page=users.prev_num, search=search, local_remote=local_remote, sort_by=sort_by, last_seen=last_seen) if users.has_prev and page != 1 else None diff --git a/app/templates/admin/users.html b/app/templates/admin/users.html index 7b5e93c9..02c92913 100644 --- a/app/templates/admin/users.html +++ b/app/templates/admin/users.html @@ -76,18 +76,12 @@ {% for user in users.items %}