Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix league round count, to fix client.get_current_war() #256

Closed
wants to merge 14 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion coc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
SOFTWARE.
"""

__version__ = "3.8.0"
__version__ = "3.8.2"

from .abc import BasePlayer, BaseClan
from .clans import RankedClan, Clan
Expand Down
250 changes: 52 additions & 198 deletions coc/client.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion coc/wars.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def _from_data(self, data: dict) -> None:
# the API returns a list and the rounds that haven't started contain war tags of #0 (not sure why)...
# we want to get only the valid rounds
self.rounds: List[List[str]] = [n["warTags"] for n in rounds if
n["warTags"][0] != "#0" or n]
n["warTags"][0] != "#0"]

self.__iter_clans = (ClanWarLeagueClan(data=data, client=self._client)
for data in data_get("clans", []))
Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
project = 'coc'
copyright = '2022, mathsman5133'
author = 'mathsman5133'
release = '3.8.0'
release = '3.8.2'


# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
14 changes: 14 additions & 0 deletions docs/miscellaneous/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,20 @@ Changelog
This page keeps a fairly detailed, human readable version
of what has changed, and whats new for each version of the lib.

v3.8.2
------

Bugs Fixed:
~~~~~~~~~~~
- Fixed a bug with :func:`coc.Client.get_current_war` that caused it to not fetch the correct current CWL war

v3.8.1
------

Bugs Fixed:
~~~~~~~~~~~
- Fixed a bug with **kwargs in :class:`coc.Client` functions that caused duplicated values

v3.8.0
------

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name = "coc.py"
authors = [{ name = "mathsman5133" }]
maintainers = [{ name = "majordoobie" }, { name = "MagicTheDev" }, { name = "Kuchenmampfer" },
{ name = "lukasthaler"}, { name = "doluk"}]
version = "3.8.0"
version = "3.8.2"
description = "A python wrapper for the Clash of Clans API"
requires-python = ">=3.7.3"
readme = "README.rst"
Expand Down
Loading