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

Commit

Permalink
'Refactored by Sourcery'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourcery AI committed Oct 20, 2021
1 parent e61a0ab commit 7bf95c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion zoo/checklists/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion zoo/repos/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)


Expand Down

0 comments on commit 7bf95c7

Please sign in to comment.