master
Aevann1 2021-09-19 16:55:10 +02:00
parent d5172c2d0e
commit 89834c3deb
1 changed files with 8 additions and 8 deletions

View File

@ -90,18 +90,18 @@ def admins(v):
admins = g.db.query(User).options(lazyload('*')).filter_by(admin_level=6).order_by(User.coins.desc()).all()
return render_template("admins.html", v=v, admins=admins)
@app.get("/log")
@auth_desired
def log(v):
# @app.get("/log")
# @auth_desired
# def log(v):
page=int(request.values.get("page", 1))
# page=int(request.values.get("page", 1))
actions = g.db.query(ModAction).order_by(ModAction.id.desc()).offset(25 * (page - 1)).limit(26).all()
# actions = g.db.query(ModAction).order_by(ModAction.id.desc()).offset(25 * (page - 1)).limit(26).all()
next_exists = len(actions)==26
actions = actions[:25]
# next_exists = len(actions)==26
# actions = actions[:25]
return render_template("log.html", v=v, actions=actions, next_exists=next_exists, page=page)
# return render_template("log.html", v=v, actions=actions, next_exists=next_exists, page=page)
@app.get("/log/<id>")
@auth_desired