Patch to allow the report bg task to update the data every half hour.
This commit is contained in:
parent
86beb92ecd
commit
ccca43bd04
1 changed files with 2 additions and 0 deletions
|
@ -20,4 +20,6 @@ async def background_task(client, config_dict):
|
||||||
for selection in config_dict['report_selections']:
|
for selection in config_dict['report_selections']:
|
||||||
await channel.send(get_covid_data(selection))
|
await channel.send(get_covid_data(selection))
|
||||||
await channel.send(get_top_data(config_dict['report_top_number']))
|
await channel.send(get_top_data(config_dict['report_top_number']))
|
||||||
|
elif(current_hour_and_minute[1] == 0):
|
||||||
|
update_data()
|
||||||
await sleep(60)
|
await sleep(60)
|
||||||
|
|
Reference in a new issue