fixed live report

This commit is contained in:
Cayo Puigdefabregas 2021-02-15 10:24:22 +01:00
parent 019c5727b0
commit 8899b40408
1 changed files with 1 additions and 1 deletions

View File

@ -352,8 +352,8 @@ class Device(Thing):
actions = copy.copy(self.actions) actions = copy.copy(self.actions)
actions.sort(key=lambda x: x.created) actions.sort(key=lambda x: x.created)
allocates = [] allocates = []
lifetime = 0
for act in actions: for act in actions:
lifetime = 0
if act.type == 'Snapshot': if act.type == 'Snapshot':
snapshot = act snapshot = act
lifestimes = snapshot.get_last_lifetimes() lifestimes = snapshot.get_last_lifetimes()