From 835f875e2efc005207c5bb727e4b871aa7e31b00 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 4 Dec 2020 19:33:05 +0100 Subject: [PATCH] fixed comments --- ereuse_devicehub/resources/action/models.py | 4 ++-- ereuse_devicehub/resources/action/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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):