Skip to content
This repository was archived by the owner on Feb 21, 2022. It is now read-only.

Commit 16f0336

Browse files
author
Sourcery AI
committed
'Refactored by Sourcery'
1 parent eff8221 commit 16f0336

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ā€Žzoo/checklists/views.pyā€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ def get_context_data(self, *, object_list=None, **kwargs):
3939
"name_slug": service.name_slug,
4040
"completed_checklist_steps": service.checkmarks.count,
4141
"total_checklist_steps": sum(
42-
[len(steps) for tag, steps in get_service_steps(service)]
42+
len(steps) for tag, steps in get_service_steps(service)
4343
),
4444
}
4545
for service in self.get_queryset()
4646
]
47+
4748
return context
4849

4950

ā€Žzoo/repos/tasks.pyā€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def schedule_pulls():
9494
pull.apply_async(
9595
args=(repo.remote_id, repo.provider),
9696
countdown=delay_s,
97-
expires=delay_s + (60 * 60),
97+
expires=delay_s + 60 ** 2,
9898
)
9999

100100

0 commit comments

Comments
Ā (0)
⚔