Skip to content

Commit

Permalink
Hotfix get_bracket_data failing to get bracket
Browse files Browse the repository at this point in the history
  • Loading branch information
vlee489 committed Oct 8, 2024
1 parent 0b98e9b commit 8cc56bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "sendou-py"
version = "1.2.3"
version = "1.2.4"
description = "An async Python library for Sendou.ink"
authors = [ "Vincent Lee <[email protected]>",]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion sendou/models/tournament/tournament.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async def get_bracket_data(self) -> Optional[Bracket]:
"""
path = Bracket.api_route(tournament_id=self.__tournament_id, bracket_index=self._index)
data = await self._request_client.get_response(path)
if not data.get("match", []):
if not data.get("data", {}).data.get("match", []):
return
return Bracket(data, self._request_client)

Expand Down

0 comments on commit 8cc56bb

Please sign in to comment.