From 2ffb955ccf2df557bd256b9e9f2200b31e8f4ebc Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 19 Sep 2021 15:32:04 +0200 Subject: [PATCH] dfs --- files/routes/static.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index e081c8a65..160074ff8 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -99,8 +99,7 @@ def log(v): 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() - 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() + actions = g.db.query(ModAction).offset(25 * (page - 1)).limit(26).all() next_exists = len(actions)==26 actions = actions[:25]