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 renderingremotes/1693176582716663532/tmp_refs/heads/watchparty
parent
b42a87ab31
commit
b79a89560f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue