fixing definitly total_seconds
This commit is contained in:
parent
8b8ff2d2c1
commit
b5e64bf0aa
|
@ -557,9 +557,9 @@ class Snapshot(JoinedWithOneDeviceMixin, ActionWithOneDevice):
|
||||||
for act in hd.actions:
|
for act in hd.actions:
|
||||||
if not act.type == "TestDataStorage":
|
if not act.type == "TestDataStorage":
|
||||||
continue
|
continue
|
||||||
data['lifetime'] = act.lifetime
|
if not act.lifetime:
|
||||||
if not isinstance(act.lifetime, int):
|
continue
|
||||||
data['lifetime'] = act.lifetime.total_seconds()
|
data['lifetime'] = act.lifetime.total_seconds()
|
||||||
break
|
break
|
||||||
hdds.append(data)
|
hdds.append(data)
|
||||||
|
|
||||||
|
|
Reference in New Issue