fixing bug

This commit is contained in:
Cayo Puigdefabregas 2021-09-28 15:44:25 +02:00
parent f10f2b848f
commit 84da94430e
1 changed files with 3 additions and 0 deletions

View File

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