Skip to content

Commit aba4217

Browse files
committed
minor changes
1 parent bb95938 commit aba4217

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

coc/ext/FullWarApi/__init__.py renamed to coc/ext/fullwarapi/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class FullWarClient:
9595
9696
"""
9797

98-
BASE_URL = "http://teamutils.com:8081"
98+
BASE_URL = "https://fw-api.teamutils.com"
9999

100100
__slots__ = ("username", "password", "clash_client", "loop", "key", "http_session")
101101

@@ -198,7 +198,9 @@ async def war_result_log(self, clan_tag: str, preparation_start: int = 0) -> Lis
198198
f"/war_result_log?clan_tag={correct_tag(clan_tag, '%23')}")
199199
try:
200200
responses = data["log"]
201-
return [ClanWar(data=response["response"], client=self.clash_client) for response in responses]
201+
202+
generator = (ClanWar(data=response["response"], client=self.clash_client) for response in responses)
203+
return generator
202204
except (IndexError, KeyError, TypeError, ValueError):
203205
return None
204206

0 commit comments

Comments
 (0)