Skip to content

Commit

Permalink
Converting slug to workaround invenio bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mesemus committed Aug 20, 2024
1 parent ba6ff3b commit 525e5ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions oarepo_communities/services/components/include.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from oarepo_communities.errors import MissingDefaultCommunityError
from oarepo_communities.proxies import current_oarepo_communities
from ..permissions.generators import convert_community_ids_to_uuid


class CommunityInclusionComponent(ServiceComponent):
Expand All @@ -14,12 +15,9 @@ def create(self, identity, data=None, record=None, **kwargs):
"Default community not defined in input."
)

community_inclusion_service = (
current_oarepo_communities.community_inclusion_service
)
community_inclusion_service.include(
current_oarepo_communities.community_inclusion_service.include(
record,
community_id,
convert_community_ids_to_uuid(community_id),
record_service=self.service,
uow=self.uow,
)
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = oarepo-communities
version = 5.0.9
version = 5.0.10
description =
authors = Ronald Krist <[email protected]>
readme = README.md
Expand Down

0 comments on commit 525e5ea

Please sign in to comment.