From 6f4a8f486b2332e6c6c489b676ca1f3e9361b9ce Mon Sep 17 00:00:00 2001 From: Zacharias Zacharodimos Date: Tue, 19 Sep 2023 22:56:40 +0200 Subject: [PATCH] service: refactor docstrings --- invenio_communities/communities/services/service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invenio_communities/communities/services/service.py b/invenio_communities/communities/services/service.py index e9167cd1c..a9bbb19d8 100644 --- a/invenio_communities/communities/services/service.py +++ b/invenio_communities/communities/services/service.py @@ -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: @@ -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)