master
Aevann1 2021-09-19 15:32:04 +02:00
parent bed7ec1069
commit 2ffb955ccf
1 changed files with 1 additions and 2 deletions

View File

@ -99,8 +99,7 @@ def log(v):
page=int(request.values.get("page",1)) page=int(request.values.get("page",1))
if v and v.admin_level == 6: actions = g.db.query(ModAction).order_by(ModAction.id.desc()).offset(25 * (page - 1)).limit(26).all() actions = g.db.query(ModAction).offset(25 * (page - 1)).limit(26).all()
else: actions=g.db.query(ModAction).filter(ModAction.kind!="shadowban", ModAction.kind!="unshadowban", ModAction.kind!="club", ModAction.kind!="unclub").order_by(ModAction.id.desc()).offset(25*(page-1)).limit(26).all()
next_exists = len(actions)==26 next_exists = len(actions)==26
actions = actions[:25] actions = actions[:25]