Skip to content

Commit

Permalink
attempt to fix fstring handling
Browse files Browse the repository at this point in the history
  • Loading branch information
JLoveUOA committed Dec 11, 2024
1 parent 12d6cf6 commit 5e22b81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/crate/ro_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 5e22b81

Please sign in to comment.