mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
search users
This commit is contained in:
parent
ca36d34256
commit
32a4d4c467
1 changed files with 2 additions and 0 deletions
|
@ -379,6 +379,8 @@ def admin_users():
|
|||
users = users.filter_by(ap_id=None)
|
||||
if local_remote == 'remote':
|
||||
users = users.filter(User.ap_id != None)
|
||||
if search:
|
||||
users = users.filter(User.email.ilike(f"%{search}%"))
|
||||
users = users.order_by(User.user_name).paginate(page=page, per_page=1000, error_out=False)
|
||||
|
||||
next_url = url_for('admin.admin_users', page=users.next_num) if users.has_next else None
|
||||
|
|
Loading…
Add table
Reference in a new issue