fixing bug

This commit is contained in:
Cayo Puigdefabregas 2021-09-28 15:44:25 +02:00
parent f10f2b848f
commit 84da94430e

View file

@ -295,6 +295,9 @@ class Device(Thing):
if ac.rol_user == history[-1].rol_user:
# get only the last action consecutive for the same user
history = history[:-1] + [ac]
continue
history.append(ac)
return history