Skip to content

Commit

Permalink
Get org data working
Browse files Browse the repository at this point in the history
  • Loading branch information
vlee489 committed Sep 13, 2024
1 parent b438b28 commit c6154ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions sendou/models/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class OrganizationRole(Enum):
"""
Represents a role of member in the organization
"""
ADMIN = "admin"
MEMBER = "member"
ORGANIZER = "organizer"
STREAMER = "streamer"
admin = "ADMIN"
member = "MEMBER"
organizer = "ORGANIZER"
streamer = "STREAMER"


class OrganizationMember(BaseModel):
Expand Down Expand Up @@ -123,5 +123,5 @@ def api_route(**kwargs) -> str:
Returns:
(str): API route
"""
return f"/api/org/{kwargs.get('org_id')}"
return f"api/org/{kwargs.get('org_id')}"

2 changes: 1 addition & 1 deletion sendou/models/tournament/tournament.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ async def get_organization(self) -> Optional[Organization]:
"""
if self.organization_id is None:
return None
path = Organization.api_route(organization_id=self.organization_id)
path = Organization.api_route(org_id=self.organization_id)
data = await self._request_client.get_response(path=path)
return Organization.from_dict(data, self._request_client)

Expand Down

0 comments on commit c6154ba

Please sign in to comment.