From b79a89560f03d4a77660e615860b295c8dbb7caf Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sun, 2 Oct 2022 00:50:59 -0700 Subject: [PATCH] add requested kind to set if not present fixes issue where the kind wouldn't show up on the list and cause a error in template rendering --- files/routes/static.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/routes/static.py b/files/routes/static.py index 9effd1d0c..705a6681f 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -154,6 +154,7 @@ def log(v): 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