From 16f033687daae384c0a7fe64d9120259c53191ec Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Wed, 20 Oct 2021 14:02:31 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- zoo/checklists/views.py | 3 ++- zoo/repos/tasks.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/zoo/checklists/views.py b/zoo/checklists/views.py index f251b653..75268943 100644 --- a/zoo/checklists/views.py +++ b/zoo/checklists/views.py @@ -39,11 +39,12 @@ def get_context_data(self, *, object_list=None, **kwargs): "name_slug": service.name_slug, "completed_checklist_steps": service.checkmarks.count, "total_checklist_steps": sum( - [len(steps) for tag, steps in get_service_steps(service)] + len(steps) for tag, steps in get_service_steps(service) ), } for service in self.get_queryset() ] + return context diff --git a/zoo/repos/tasks.py b/zoo/repos/tasks.py index a69fcb4a..08ca3255 100644 --- a/zoo/repos/tasks.py +++ b/zoo/repos/tasks.py @@ -94,7 +94,7 @@ def schedule_pulls(): pull.apply_async( args=(repo.remote_id, repo.provider), countdown=delay_s, - expires=delay_s + (60 * 60), + expires=delay_s + 60 ** 2, )