diff --git a/ereuse_devicehub/resources/action/models.py b/ereuse_devicehub/resources/action/models.py index 0ba94a91..07c1c1b9 100644 --- a/ereuse_devicehub/resources/action/models.py +++ b/ereuse_devicehub/resources/action/models.py @@ -1337,8 +1337,8 @@ class Live(JoinedWithOneDeviceMixin, ActionWithOneDevice): self.actions.reverse() def last_usage_time_allocate(self): - """If we don't have self.usage_time_hdd then we need search the last - usage_time_allocate valid""" + """If we don't have self.usage_time_hdd then we need search the last + action Live with usage_time_allocate valid""" for e in self.actions: if isinstance(e, Live) and e.created < self.created: if not e.usage_time_allocate: diff --git a/ereuse_devicehub/resources/action/views.py b/ereuse_devicehub/resources/action/views.py index a6aa108e..f6e5eb8c 100644 --- a/ereuse_devicehub/resources/action/views.py +++ b/ereuse_devicehub/resources/action/views.py @@ -267,7 +267,7 @@ class ActionView(View): live.sort_actions() diff_time = live.diff_time() 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.severity = Severity.Warning elif diff_time < timedelta(0):