fixed #249
This commit is contained in:
parent
0a5b9e4122
commit
a7cf96824e
|
@ -2419,6 +2419,9 @@ async def league_day_watcher(channel, league, games_list, filter_url, last = Fal
|
||||||
next_start = (now + delta).replace(second=0, microsecond=0)
|
next_start = (now + delta).replace(second=0, microsecond=0)
|
||||||
wait_seconds = (next_start - now).seconds
|
wait_seconds = (next_start - now).seconds
|
||||||
|
|
||||||
|
if wait_seconds > 3601: #there's never a situation to wait longer than an hour so hoo ray bugfixes the easy way
|
||||||
|
wait_seconds = 60
|
||||||
|
|
||||||
leagues.save_league(league)
|
leagues.save_league(league)
|
||||||
active_standings[league] = await channel.send(embed=league.standings_embed())
|
active_standings[league] = await channel.send(embed=league.standings_embed())
|
||||||
await league_subscriber_update(league, channel, f"The day {league.day} games for the {league.name} will start in {math.ceil(wait_seconds/60)} minutes.")
|
await league_subscriber_update(league, channel, f"The day {league.day} games for the {league.name} will start in {math.ceil(wait_seconds/60)} minutes.")
|
||||||
|
|
Loading…
Reference in a new issue