From 8899b40408ad9cf8487efd8aed2d69aeb58c6801 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 15 Feb 2021 10:24:22 +0100 Subject: [PATCH] fixed live report --- ereuse_devicehub/resources/device/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/resources/device/models.py b/ereuse_devicehub/resources/device/models.py index 300aeab9..8386b2ba 100644 --- a/ereuse_devicehub/resources/device/models.py +++ b/ereuse_devicehub/resources/device/models.py @@ -352,8 +352,8 @@ class Device(Thing): actions = copy.copy(self.actions) actions.sort(key=lambda x: x.created) allocates = [] + lifetime = 0 for act in actions: - lifetime = 0 if act.type == 'Snapshot': snapshot = act lifestimes = snapshot.get_last_lifetimes()