From 5e22b8112383a4e2549f3d9a28e1642a91632864 Mon Sep 17 00:00:00 2001 From: JloveUOA Date: Wed, 11 Dec 2024 14:16:04 +1300 Subject: [PATCH] attempt to fix fstring handling --- src/crate/ro_builder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/crate/ro_builder.py b/src/crate/ro_builder.py index 9ebfb32..ddbb17e 100644 --- a/src/crate/ro_builder.py +++ b/src/crate/ro_builder.py @@ -94,7 +94,8 @@ def add_project(self, project: Project) -> ContextEntity: def add_member(self, member: Member) -> ContextEntity: def construct_member_id(member: Member) -> str: if member.role: - return f"{MEMBER_PREFIX}{member.project_id}/{"".join(member.role.name.split())}/{member.person.username}" + role_string = "".join(member.role.name.split()) + return f"{MEMBER_PREFIX}{member.project_id}/{role_string}/{member.person.username}" else: return f"{MEMBER_PREFIX}{member.project_id}/{member.person.username}"