minor change to punished listings

master
Aevann1 2022-12-14 15:12:02 +02:00
parent b433efb7fd
commit df804c3179
4 changed files with 3 additions and 4 deletions

View File

@ -340,7 +340,7 @@ def shadowbanned(v):
users = g.db.query(User) \
.filter(
User.shadowbanned != None,
User.truescore >= 100,
User.truescore >= 10,
) \
.order_by(nullslast(User.last_active.desc())).all()

View File

@ -174,7 +174,6 @@ def banned(v:User):
users = g.db.query(User).filter(
User.is_banned != None,
or_(User.unban_utc == 0, User.unban_utc > time.time()),
User.truescore >= 100,
)
if v.admin_level >= PERMS['VIEW_LAST_ACTIVE']:
users = users.order_by(nullslast(User.last_active.desc()))

View File

@ -2,7 +2,7 @@
{% block pagetitle %}Shadowbanned Users{% endblock %}
{% block content %}
<h5 class="my-4">Shadowbanned Users (>= 100 Truscore)</h5>
<h5 class="my-4">Shadowbanned Users (>= 10 Truscore)</h5>
<div class="overflow-x-auto">
<table class="table table-striped mb-5">
<thead class="bg-primary text-white">

View File

@ -2,7 +2,7 @@
{% block pagetitle %}Banned Users{% endblock %}
{% block content %}
<h5 class="my-4">Banned Users (>= 100 Truscore)</h5>
<h5 class="my-4">Banned Users</h5>
<div class="overflow-x-auto"><table class="table table-striped mb-5">
<thead class="bg-primary text-white">
<tr>