Skip to content
Merged
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/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def new_war(cls, tags=None, custom_class=None, retry_interval=None):

async def wrapped(cached_war: ClanWar, war: ClanWar, callback):
if cached_war.preparation_start_time and war.preparation_start_time \
and cached_war.preparation_start_time.timestamp != war.preparation_start_time.time:
and cached_war.preparation_start_time.time != war.preparation_start_time.time:
await callback(war)
elif war.preparation_start_time and not cached_war.preparation_start_time:
# no war on endpoint, so new war is for sure new
Expand Down