From 4c08f65218611471aa6a77bb69d2024d86c6f42e Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 23 Feb 2021 17:40:36 +0100 Subject: [PATCH] fixing internal stats --- ereuse_devicehub/resources/documents/device_row.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ereuse_devicehub/resources/documents/device_row.py b/ereuse_devicehub/resources/documents/device_row.py index fd37760f..74a322be 100644 --- a/ereuse_devicehub/resources/documents/device_row.py +++ b/ereuse_devicehub/resources/documents/device_row.py @@ -441,6 +441,9 @@ class InternalStatsRow(OrderedDict): canary = False for _ac in ac.device.actions: + if not _ac.type == 'Snapshot': + continue + if _ac.created < ac.created: canary = True break