forked from MarseyWorld/MarseyWorld
show only permachudded users in /chuds
parent
36a0d48fe6
commit
6b7b2ff59a
|
@ -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()
|
||||||
|
|
|
@ -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)) -%}
|
||||||
|
|
Loading…
Reference in New Issue