Skip to content

Commit

Permalink
service: refactor docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
zzacharo committed Sep 19, 2023
1 parent 31945c6 commit 6f4a8f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions invenio_communities/communities/services/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def search(
extra_filter=None,
**kwargs,
):
"""Search for published records matching the querystring."""
"""Search for active communities matching the querystring."""
status = CommunityDeletionStatusEnum.PUBLISHED.value
search_filter = dsl.Q("term", **{"deletion_status": status})
if extra_filter:
Expand All @@ -659,7 +659,7 @@ def search_all(
extra_filter=None,
**kwargs,
):
"""Search for all (published and deleted) records matching the querystring."""
"""Search for all (active and deleted) communities matching the querystring."""
self.require_permission(identity, "search_all")

# exclude drafts filter (drafts have no deletion status)
Expand Down

0 comments on commit 6f4a8f4

Please sign in to comment.