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

Entity model (Sourcery refactored) #410

Open
wants to merge 1 commit into
base: jaro/entity_model
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
]

Comment on lines -42 to +47
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function GlobalChecklistsView.get_context_data refactored with the following changes:

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 @@ -95,7 +95,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