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 5409a0c commit f4a29eb
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 @@ -80,7 +80,7 @@ async def clan_war_track(clan_tag: str, db_client: MongoDatabase, coc_client: co
if acceptable_times:
for future_time, r_time in acceptable_times:
if r_time in set_times:
scheduler.add_job(send_reminder, 'date', run_date=pend.now(tz=pend.UTC), args=[r_time, war_unique_id, clan_tag, producer],
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)
continue

Expand Down

0 comments on commit f4a29eb

Please sign in to comment.