forked from MarseyWorld/MarseyWorld
sneed
parent
d1e391683b
commit
6bd0043248
|
@ -106,6 +106,8 @@ def daily_chart(v):
|
||||||
@app.get("/paypigs")
|
@app.get("/paypigs")
|
||||||
@admin_level_required(3)
|
@admin_level_required(3)
|
||||||
def patrons(v):
|
def patrons(v):
|
||||||
|
if AEVANN_ID and v.id != AEVANN_ID: abort(404)
|
||||||
|
|
||||||
users = g.db.query(User).filter(User.patron > 0).order_by(User.patron.desc(), User.id).all()
|
users = g.db.query(User).filter(User.patron > 0).order_by(User.patron.desc(), User.id).all()
|
||||||
|
|
||||||
return render_template("patrons.html", v=v, users=users)
|
return render_template("patrons.html", v=v, users=users)
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
<li><a href="/agendaposters">Users with Chud Theme</a></li>
|
<li><a href="/agendaposters">Users with Chud Theme</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'] -%}
|
{% if FEATURES['PROCOINS'] and (not AEVANN_ID or v.id == AEVANN_ID) -%}
|
||||||
<li><a href="/patrons">Patrons / Paypigs</a></li>
|
<li><a href="/patrons">Patrons / Paypigs</a></li>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
<li><a href="/admin/loggedin">Currently Logged-in Users</a></li>
|
<li><a href="/admin/loggedin">Currently Logged-in Users</a></li>
|
||||||
|
|
Loading…
Reference in New Issue