fixed comments
This commit is contained in:
parent
7e41c66073
commit
835f875e2e
|
@ -1337,8 +1337,8 @@ class Live(JoinedWithOneDeviceMixin, ActionWithOneDevice):
|
||||||
self.actions.reverse()
|
self.actions.reverse()
|
||||||
|
|
||||||
def last_usage_time_allocate(self):
|
def last_usage_time_allocate(self):
|
||||||
"""If we don't have self.usage_time_hdd then we need search the last
|
"""If we don't have self.usage_time_hdd then we need search the last
|
||||||
usage_time_allocate valid"""
|
action Live with usage_time_allocate valid"""
|
||||||
for e in self.actions:
|
for e in self.actions:
|
||||||
if isinstance(e, Live) and e.created < self.created:
|
if isinstance(e, Live) and e.created < self.created:
|
||||||
if not e.usage_time_allocate:
|
if not e.usage_time_allocate:
|
||||||
|
|
|
@ -267,7 +267,7 @@ class ActionView(View):
|
||||||
live.sort_actions()
|
live.sort_actions()
|
||||||
diff_time = live.diff_time()
|
diff_time = live.diff_time()
|
||||||
if diff_time is None:
|
if diff_time is None:
|
||||||
warning = "Don't exist one previus live or snapshot as reference"
|
warning = "Don't exist one previous live or snapshot as reference"
|
||||||
live.description += warning
|
live.description += warning
|
||||||
live.severity = Severity.Warning
|
live.severity = Severity.Warning
|
||||||
elif diff_time < timedelta(0):
|
elif diff_time < timedelta(0):
|
||||||
|
|
Reference in New Issue