From 84da94430eeb3f25f2e961438ea13299c665a817 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 28 Sep 2021 15:44:25 +0200 Subject: [PATCH] fixing bug --- ereuse_devicehub/resources/device/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ereuse_devicehub/resources/device/models.py b/ereuse_devicehub/resources/device/models.py index fc6c3cc3..6fce9e89 100644 --- a/ereuse_devicehub/resources/device/models.py +++ b/ereuse_devicehub/resources/device/models.py @@ -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