Skip to content

Commit 004b730

Browse files
committed
Fixes standing not being processed correctly
due to losses being spelt as loses
1 parent c7655c2 commit 004b730

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pyproject.toml

+1-1
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.5"
7+
version = "1.2.6"
88
description = "An async Python library for Sendou.ink"
99
authors = [ "Vincent Lee <[email protected]>",]
1010
license = "MIT"

sendou/models/tournament/bracket/Standing.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ class StandingStats:
2727
buchholz_sets: Optional[int]
2828
buchholz_maps: Optional[int]
2929

30-
def __init__(self, set_wins: int, set_loses: int, map_wins: int, map_loses: int, points: int, wins_against_tied: int,
30+
def __init__(self, set_wins: int, set_losses: int, map_wins: int, map_losses: int, points: int, wins_against_tied: int,
3131
buchholz_sets: Optional[int] = None, buchholz_maps: Optional[int] = None):
3232

3333
self.set_wins = set_wins
34-
self.set_loses = set_loses
34+
self.set_losses = set_losses
3535
self.map_wins = map_wins
36-
self.map_loses = map_loses
36+
self.map_losses = map_losses
3737
self.points = points
3838
self.wins_against_tied = wins_against_tied
3939
self.buchholz_maps = buchholz_maps
@@ -52,9 +52,9 @@ def from_dict(cls, data: dict):
5252
"""
5353
return cls(
5454
set_wins=data.get("setWins", 0),
55-
set_loses=data.get("setLoses", 0),
55+
set_losses=data.get("setLosses", 0),
5656
map_wins=data.get("mapWins", 0),
57-
map_loses=data.get("mapLoses", 0),
57+
map_losses=data.get("mapLosses", 0),
5858
points=data.get("points", 0),
5959
wins_against_tied=data.get("winsAgainstTied", 0),
6060
buchholz_sets=data.get("buchholzSets", None),

0 commit comments

Comments
 (0)