Skip to content

Commit c7655c2

Browse files
committed
Attempt 2: Hotfix get_bracket_data failing to get bracket
1 parent 8cc56bb commit c7655c2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "sendou-py"
7-
version = "1.2.4"
7+
version = "1.2.5"
88
description = "An async Python library for Sendou.ink"
99
authors = [ "Vincent Lee <[email protected]>",]
1010
license = "MIT"

sendou/models/tournament/tournament.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ async def get_bracket_data(self) -> Optional[Bracket]:
6969
"""
7070
path = Bracket.api_route(tournament_id=self.__tournament_id, bracket_index=self._index)
7171
data = await self._request_client.get_response(path)
72-
if not data.get("data", {}).data.get("match", []):
72+
if not data.get("data", {}).get("match", []):
7373
return
7474
return Bracket(data, self._request_client)
7575

0 commit comments

Comments
 (0)