Skip to content

Commit 11428a8

Browse files
committed
alias for x3vs3_victories, fix docs
1 parent d042f2b commit 11428a8

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

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.1] - 4/12/20
5+
### Added
6+
- An alias for `Player.x3vs3_victories` called `team_victories`
7+
48
## [4.0.0] - 3/11/20
59
### Added
610
- `reason` attribute for `NotFoundError`

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.0'
11+
__version__ = 'v4.0.1'
1212
__title__ = 'brawlstats'
1313
__license__ = 'MIT'
1414
__author__ = 'SharpBit'

brawlstats/models.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ 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
47+
self.team_victories = self.x3vs3_victories
48+
4549
def __repr__(self):
4650
return "<Player object name='{0.name}' tag='{0.tag}'>".format(self)
4751

docs/api.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ Name Type
5252
``exp_level`` int
5353
``exp_points`` int
5454
``is_qualified_from_championship_challenge`` bool
55-
``x3_vs_3_victories`` int
55+
``x3vs3_victories`` int
56+
``team_victories`` int
5657
``solo_victories`` int
5758
``duo_victories`` int
5859
``best_robo_rumble_time`` int

0 commit comments

Comments
 (0)