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
remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-10-02 00:50:59 -07:00 committed by GitHub
parent b42a87ab31
commit b79a89560f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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