Skip to content

Commit 96852f8

Browse files
committed
not False == True
1 parent e8c14a9 commit 96852f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

coc/http.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,17 +347,17 @@ def get_clan_warlog(self, tag):
347347

348348
def get_clan_current_war(self, tag, realtime = None):
349349
return self.request(Route("GET", "/clans/{}/currentwar".format(tag) + (
350-
'?realtime=true' if realtime or (not realtime and self.client.realtime)
350+
'?realtime=true' if realtime or (realtime is None and self.client.realtime)
351351
else '')))
352352

353353
def get_clan_war_league_group(self, tag, realtime = None):
354354
return self.request(Route("GET", "/clans/{}/currentwar/leaguegroup".format(tag) + (
355-
'?realtime=true' if realtime or (not realtime and self.client.realtime)
355+
'?realtime=true' if realtime or (realtime is None and self.client.realtime)
356356
else '')))
357357

358358
def get_cwl_wars(self, war_tag, realtime = None):
359359
return self.request(Route("GET", "/clanwarleagues/wars/{}".format(war_tag) + (
360-
'?realtime=true' if realtime or (not realtime and self.client.realtime)
360+
'?realtime=true' if realtime or (realtime is None and self.client.realtime)
361361
else '')))
362362

363363
# locations

0 commit comments

Comments
 (0)