Patch to allow the report bg task to update the data every half hour.

This commit is contained in:
Alex Huddleston 2020-04-01 10:31:12 -05:00
parent 86beb92ecd
commit ccca43bd04

View file

@ -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)