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