Skip to content

Commit

Permalink
add: scheduler logging
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev committed Apr 25, 2024
1 parent 150e86b commit d2f34be
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gamewide/war/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ async def get_war(clan_tag: str):
if war.state == "warEnded":
return war # Found the completed war
# Check prep time and retry if needed
prep_start_timestamp = int(war.preparation_start_time.time.replace(tzinfo=pend.UTC).timestamp())
if war.preparation_start_time is None or prep_start_timestamp != prep_time:
if war.preparation_start_time is None or int(war.preparation_start_time.time.replace(tzinfo=pend.UTC).timestamp()) != prep_time:
if not switched:
clan_tag = opponent_tag
switched = True
Expand Down

0 comments on commit d2f34be

Please sign in to comment.