forked from rDrama/rDrama
dfdfd
parent
6fe3301078
commit
21dd5478f3
|
@ -19,11 +19,10 @@ import matplotlib.pyplot as plt
|
||||||
from drama.__main__ import app, cache
|
from drama.__main__ import app, cache
|
||||||
from .front import frontlist
|
from .front import frontlist
|
||||||
|
|
||||||
@app.get("/admin/patrons")
|
@app.get("/patrons")
|
||||||
@auth_required
|
@auth_desired
|
||||||
def patrons(v):
|
def patrons(v):
|
||||||
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
if v and v.is_banned and not v.unban_utc: return render_template("seized.html")
|
||||||
if not (v and v.admin_level == 6): abort(404)
|
|
||||||
users = [x for x in g.db.query(User).filter(User.patron > 0).order_by(User.patron.desc()).all()]
|
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)
|
return render_template("patrons.html", v=v, users=users)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue