mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
bad attitude users - filter by recently active
This commit is contained in:
parent
7de1fd7891
commit
d5355c6a00
1 changed files with 1 additions and 1 deletions
|
@ -538,7 +538,7 @@ def admin_users_trash():
|
||||||
users = users.order_by(User.reputation).paginate(page=page, per_page=1000, error_out=False)
|
users = users.order_by(User.reputation).paginate(page=page, per_page=1000, error_out=False)
|
||||||
elif type == 'bad_attitude':
|
elif type == 'bad_attitude':
|
||||||
users = users.filter(User.last_seen > utcnow() - timedelta(days=7))
|
users = users.filter(User.last_seen > utcnow() - timedelta(days=7))
|
||||||
users = users.filter(User.attitude < 0.0)
|
users = users.filter(User.attitude < 0.0).filter(User.reputation < -10)
|
||||||
users = users.order_by(User.attitude).paginate(page=page, per_page=1000, error_out=False)
|
users = users.order_by(User.attitude).paginate(page=page, per_page=1000, error_out=False)
|
||||||
|
|
||||||
next_url = url_for('admin.admin_users_trash', page=users.next_num, search=search, local_remote=local_remote, type=type) if users.has_next else None
|
next_url = url_for('admin.admin_users_trash', page=users.next_num, search=search, local_remote=local_remote, type=type) if users.has_next else None
|
||||||
|
|
Loading…
Add table
Reference in a new issue