From 14da59fe3b3de1b19863fe6a6633acbf6eb24b16 Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Fri, 1 Oct 2021 13:06:37 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- zoo/checklists/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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