forked from MarseyWorld/MarseyWorld
dffddf
parent
21dd5478f3
commit
4095798570
|
@ -19,14 +19,6 @@ import matplotlib.pyplot as plt
|
|||
from drama.__main__ import app, cache
|
||||
from .front import frontlist
|
||||
|
||||
@app.get("/patrons")
|
||||
@auth_desired
|
||||
def patrons(v):
|
||||
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
||||
users = [x for x in g.db.query(User).filter(User.patron > 0).order_by(User.patron.desc()).all()]
|
||||
return render_template("patrons.html", v=v, users=users)
|
||||
|
||||
|
||||
@app.get("/admin/shadowbanned")
|
||||
@auth_required
|
||||
def shadowbanned(v):
|
||||
|
|
|
@ -3,6 +3,13 @@ from drama.__main__ import app, limiter
|
|||
from drama.helpers.alerts import *
|
||||
|
||||
|
||||
@app.get("/patrons")
|
||||
@auth_desired
|
||||
def patrons(v):
|
||||
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
||||
users = [x for x in g.db.query(User).filter(User.patron > 0).order_by(User.patron.desc()).all()]
|
||||
return render_template("patrons.html", v=v, users=users)
|
||||
|
||||
@app.get("/badmins")
|
||||
@app.route("/api/vue/admins", methods=["GET"])
|
||||
@app.get("/api/v1/admins")
|
||||
|
|
Loading…
Reference in New Issue