Skip to content

Commit

Permalink
fix: remove comparison, as n always exists just with empty war tags
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev committed Jan 6, 2025
1 parent 7c1a0a9 commit 9ccbf58
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 9ccbf58

Please sign in to comment.