From 0e5a72d34814a3fef7fddc3f37ae3d098fa84905 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 24 Nov 2021 01:04:16 +0200 Subject: [PATCH] fdsfsd --- files/classes/mod_logs.py | 10 ---------- files/routes/static.py | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/files/classes/mod_logs.py b/files/classes/mod_logs.py index 93fb41ee5..95c3f3941 100644 --- a/files/classes/mod_logs.py +++ b/files/classes/mod_logs.py @@ -389,16 +389,6 @@ ACTIONTYPES2={ "icon":"fa-feather-alt", "color": "bg-muted", }, - "club":{ - "str": 'marked post {self.target_link} as club-only', - "icon":"fa-eye-slash", - "color": "bg-danger", - }, - "unclub":{ - "str": 'unmarked post {self.target_link} as club-only', - "icon":"fa-eye", - "color": "bg-muted", - }, "ban_comment":{ "str": 'removed {self.target_link}', "icon":"fa-comment", diff --git a/files/routes/static.py b/files/routes/static.py index 585f34a72..3b04754fe 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -190,7 +190,7 @@ def log(v): actions = g.db.query(ModAction) if not (v and v.admin_level > 1): - actions = actions.filter(ModAction.kind!="shadowban", ModAction.kind!="unshadowban", ModAction.kind!="club_allow", ModAction.kind!="club_ban", ModAction.kind!="check") + actions = actions.filter(ModAction.kind.notin_(["shadowban","unshadowban","club","unclub","club_allow","club_ban","check"]) if admin_id: actions = actions.filter_by(user_id=admin_id) if kind: actions = actions.filter_by(kind=kind)