Skip to content

Commit

Permalink
reminder fix & improve efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev committed Apr 18, 2024
1 parent f4a29eb commit 2a722c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/clan/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async def clan_war_track(clan_tag: str, db_client: MongoDatabase, coc_client: co
for future_time, r_time in acceptable_times:
if r_time in set_times:
scheduler.add_job(send_reminder, 'date', run_date=future_time, args=[r_time, war_unique_id, clan_tag, producer],
id=f"war_end_{war.clan.tag}_{war.opponent.tag}", name=f"war_end_{war.clan.tag}_{war.opponent.tag}", misfire_grace_time=1200, max_instances=1)
id=f"war_end_{war.clan.tag}_{war.opponent.tag}_{future_time.timestamp()}", misfire_grace_time=1200, max_instances=1)
continue

if war == previous_war:
Expand Down

0 comments on commit 2a722c6

Please sign in to comment.