Skip to content

Commit

Permalink
style: Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChV committed Nov 11, 2024
1 parent 9d3dc37 commit d95bede
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions openedx/core/djangoapps/content/search/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,14 @@ def searchable_doc_for_collection(
if collection:
assert collection.key == collection_key

draft_num_children = authoring_api.filter_publishable_entities(collection.entities, has_draft=True).count()
published_num_children = authoring_api.filter_publishable_entities(collection.entities, has_published=True).count()
draft_num_children = authoring_api.filter_publishable_entities(
collection.entities,
has_draft=True,
).count()
published_num_children = authoring_api.filter_publishable_entities(
collection.entities,
has_published=True,
).count()

doc.update({
Fields.context_key: str(library_key),
Expand Down

0 comments on commit d95bede

Please sign in to comment.