From 7ff138f6f1ea5b1b532fedcb92d6ebc41ee7e204 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sat, 29 Oct 2022 17:43:20 -0500 Subject: [PATCH] modlog: fix 500 when clicking on an action and then clicking on an admin, if that admin doesn't have any admin actions of that specific type --- files/routes/static.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/static.py b/files/routes/static.py index 8c7cc4a7a..d2995a86a 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -244,6 +244,7 @@ def log(v=None): if admin_id: actions = actions.filter_by(user_id=admin_id) kinds = set([x.kind for x in actions]) + kinds.add(kind) types2 = {} for k,val in types.items(): if k in kinds: types2[k] = val