show only permachudded users in /chuds

master
Aevann1 2022-11-20 19:37:45 +02:00
parent 36a0d48fe6
commit 6b7b2ff59a
2 changed files with 2 additions and 2 deletions

View File

@ -181,7 +181,7 @@ def grassed(v):
@app.get("/chuds") @app.get("/chuds")
@auth_required @auth_required
def chuds(v): def chuds(v):
users = g.db.query(User).filter(User.agendaposter > 0) users = g.db.query(User).filter(User.agendaposter == 1)
if not v.can_see_shadowbanned: if not v.can_see_shadowbanned:
users = users.filter(User.shadowbanned == None) users = users.filter(User.shadowbanned == None)
users = users.order_by(User.username).all() users = users.order_by(User.username).all()

View File

@ -48,7 +48,7 @@
{% endif %} {% endif %}
<li><a href="/banned">Permabanned Users</a></li> <li><a href="/banned">Permabanned Users</a></li>
{% if FEATURES['AWARDS'] -%} {% if FEATURES['AWARDS'] -%}
<li><a href="/chuds">Chudded Users</a></li> <li><a href="/chuds">Permachudded Users</a></li>
<li><a href="/grassed">Currently Grassed Users</a></li> <li><a href="/grassed">Currently Grassed Users</a></li>
{%- endif %} {%- endif %}
{% if FEATURES['PROCOINS'] and (not AEVANN_ID or v.id in (AEVANN_ID, CARP_ID, SNAKES_ID)) -%} {% if FEATURES['PROCOINS'] and (not AEVANN_ID or v.id in (AEVANN_ID, CARP_ID, SNAKES_ID)) -%}