Skip to content

Commit 3a10958

Browse files
committed
fix bug for player models (issue #50)
1 parent 11428a8 commit 3a10958

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4+
## [4.0.2] - 4/15/20
5+
### Fixed
6+
- Player model bug
7+
48
## [4.0.1] - 4/12/20
59
### Added
610
- An alias for `Player.x3vs3_victories` called `team_victories`

brawlstats/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
############
99

1010

11-
__version__ = 'v4.0.1'
11+
__version__ = 'v4.0.2'
1212
__title__ = 'brawlstats'
1313
__license__ = 'MIT'
1414
__author__ = 'SharpBit'

brawlstats/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ class Player(BaseBox):
4242
Returns a full player object with all of its attributes.
4343
"""
4444

45-
def __init__(self):
46-
# Make a less awkward alias
45+
def __init__(self, *args, **kwargs):
46+
super().__init__(*args, **kwargs)
4747
self.team_victories = self.x3vs3_victories
4848

4949
def __repr__(self):

0 commit comments

Comments
 (0)