Skip to content

Commit 99d9d9a

Browse files
committed
Version Bump to v1.1.0, adjust docs for Player.clan_previous_rank
1 parent 1ac2a36 commit 99d9d9a

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

coc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
SOFTWARE.
2323
"""
2424

25-
__version__ = "1.1.0a"
25+
__version__ = "1.1.0"
2626

2727
from .abc import BasePlayer, BaseClan
2828
from .clans import RankedClan, Clan

coc/players.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ class ClanMember(BasePlayer):
6464
clan_rank: :class:`int`
6565
The member's rank in the clan.
6666
clan_previous_rank: :class:`int`
67-
The member's rank in the clan at the end of the last season.
67+
The member's rank before the last leaderboard change
68+
(ie if Bob overtakes Jim in trophies, and they switch ranks on the leaderboard,
69+
and you want to find out their previous rankings, this will help.).
6870
donations: :class:`int`
6971
The member's donation count for this season.
7072
received: :class:`int`

docs/miscellaneous/changelog.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,26 @@ Changelog
77
This page keeps a fairly detailed, human readable version
88
of what has changed, and whats new for each version of the lib.
99

10+
v1.1.0
11+
------
12+
13+
- Adds support for the new Player API verification endpoint - see :meth:`Client.verify_player_token`
14+
15+
- Fixes a bug where members in `clan.get_detailed_members()` wouldn't have the `clan_rank` attribute, for example::
16+
17+
# before
18+
async for member in clan.get_detailed_members():
19+
print(member.clan_rank) # prints "None"
20+
21+
# after
22+
async for member in clan.get_detailed_members():
23+
print(member.clan_rank) # prints "1" or "10" or their clan rank.
24+
25+
26+
- Fixes a bug where getting the warlog failed for clans with (>3yr) old war logs. See <https://github.com/mathsman5133/coc.py/issues/72>
27+
28+
- Fixed docs for :attr:`Player.clan_previous_rank` since it was misleading before.
29+
1030
v1.0.4
1131
------
1232

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
with open(os.path.join(os.getcwd(), "requirements.txt")) as f:
88
REQUIREMENTS = f.read().splitlines()
99

10-
VERSION = "1.1.0a"
10+
VERSION = "1.1.0"
1111
if "a" in VERSION:
1212
VERSION += "+" + subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]).decode("utf-8").strip()
1313

0 commit comments

Comments
 (0)