order punished listings by truescore instead

master
Aevann1 2022-12-15 20:31:51 +02:00
parent ba3383c788
commit bd8ac649d4
2 changed files with 3 additions and 3 deletions

View File

@ -341,7 +341,7 @@ def shadowbanned(v):
.filter(
User.shadowbanned != None,
) \
.order_by(nullslast(User.last_active.desc())).all()
.order_by(User.truescore.desc()).all()
return render_template("admin/shadowbanned.html", v=v, users=users)

View File

@ -176,7 +176,7 @@ def banned(v:User):
or_(User.unban_utc == 0, User.unban_utc > time.time()),
)
if v.admin_level >= PERMS['VIEW_LAST_ACTIVE']:
users = users.order_by(nullslast(User.last_active.desc()))
users = users.order_by(User.truescore.desc())
if not v.can_see_shadowbanned:
users = users.filter(User.shadowbanned == None)
users = users.all()
@ -201,7 +201,7 @@ def chuds(v:User):
or_(User.agendaposter == 1, User.agendaposter > time.time()),
)
if v.admin_level >= PERMS['VIEW_LAST_ACTIVE']:
users = users.order_by(nullslast(User.last_active.desc()))
users = users.order_by(User.truescore.desc())
if not v.can_see_shadowbanned:
users = users.filter(User.shadowbanned == None)
users = users.order_by(User.username).all()