Skip to content

Commit f36b4b5

Browse files
authored
Merge pull request #257 from mathsman5133/fix/current-war
Fix: remove comparison in league group
2 parents 12db1c8 + 25c2bc3 commit f36b4b5

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
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__ = "3.8.1"
25+
__version__ = "3.8.2"
2626

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

coc/wars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def _from_data(self, data: dict) -> None:
440440
# the API returns a list and the rounds that haven't started contain war tags of #0 (not sure why)...
441441
# we want to get only the valid rounds
442442
self.rounds: List[List[str]] = [n["warTags"] for n in rounds if
443-
n["warTags"][0] != "#0" or n]
443+
n["warTags"][0] != "#0"]
444444

445445
self.__iter_clans = (ClanWarLeagueClan(data=data, client=self._client)
446446
for data in data_get("clans", []))

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
project = 'coc'
1616
copyright = '2022, mathsman5133'
1717
author = 'mathsman5133'
18-
release = '3.8.1'
18+
release = '3.8.2'
1919

2020

2121
# -- General configuration ---------------------------------------------------

docs/miscellaneous/changelog.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ 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+
v3.8.2
11+
------
12+
13+
Bugs Fixed:
14+
~~~~~~~~~~~
15+
- Fixed a bug with :func:`coc.Client.get_current_war` that caused it to not fetch the correct current CWL war
16+
1017
v3.8.1
1118
------
1219

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name = "coc.py"
77
authors = [{ name = "mathsman5133" }]
88
maintainers = [{ name = "majordoobie" }, { name = "MagicTheDev" }, { name = "Kuchenmampfer" },
99
{ name = "lukasthaler"}, { name = "doluk"}]
10-
version = "3.8.1"
10+
version = "3.8.2"
1111
description = "A python wrapper for the Clash of Clans API"
1212
requires-python = ">=3.7.3"
1313
readme = "README.rst"

0 commit comments

Comments
 (0)