Skip to content

Commit

Permalink
Fixes standing not being processed correctly
Browse files Browse the repository at this point in the history
due to losses being spelt as loses
  • Loading branch information
vlee489 committed Oct 8, 2024
1 parent c7655c2 commit 004b730
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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.5"
version = "1.2.6"
description = "An async Python library for Sendou.ink"
authors = [ "Vincent Lee <[email protected]>",]
license = "MIT"
Expand Down
10 changes: 5 additions & 5 deletions sendou/models/tournament/bracket/Standing.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ class StandingStats:
buchholz_sets: Optional[int]
buchholz_maps: Optional[int]

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

self.set_wins = set_wins
self.set_loses = set_loses
self.set_losses = set_losses
self.map_wins = map_wins
self.map_loses = map_loses
self.map_losses = map_losses
self.points = points
self.wins_against_tied = wins_against_tied
self.buchholz_maps = buchholz_maps
Expand All @@ -52,9 +52,9 @@ def from_dict(cls, data: dict):
"""
return cls(
set_wins=data.get("setWins", 0),
set_loses=data.get("setLoses", 0),
set_losses=data.get("setLosses", 0),
map_wins=data.get("mapWins", 0),
map_loses=data.get("mapLoses", 0),
map_losses=data.get("mapLosses", 0),
points=data.get("points", 0),
wins_against_tied=data.get("winsAgainstTied", 0),
buchholz_sets=data.get("buchholzSets", None),
Expand Down

0 comments on commit 004b730

Please sign in to comment.