From 32bf7cb59acde4b96f57cbdbcd4c6882b6738c67 Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Mon, 27 Sep 2021 13:44:34 +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