Skip to content

Commit

Permalink
style: Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisChV committed Nov 1, 2024
1 parent 772df4e commit 3b940ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openedx_learning/apps/authoring/collections/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@ def remove_unpublished_from_collections(learning_package_id: int) -> None:
"""
Removes all unpublished entities from collections for a
given learning package.
One use case for this function is when reverting to published.
If a collection has unpublished entities and the learning package is reverted
to the published version, the unpublished entities need to be removed.
"""
collections = get_collections(learning_package_id)

Expand Down

0 comments on commit 3b940ce

Please sign in to comment.