From ccca43bd04ce6b4378bbe0042a6b4e91cc5f76e1 Mon Sep 17 00:00:00 2001 From: Alex Huddleston Date: Wed, 1 Apr 2020 10:31:12 -0500 Subject: [PATCH] Patch to allow the report bg task to update the data every half hour. --- lib/covid_report_lib.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/covid_report_lib.py b/lib/covid_report_lib.py index 23619f5..02e51cc 100644 --- a/lib/covid_report_lib.py +++ b/lib/covid_report_lib.py @@ -20,4 +20,6 @@ async def background_task(client, config_dict): for selection in config_dict['report_selections']: await channel.send(get_covid_data(selection)) await channel.send(get_top_data(config_dict['report_top_number'])) + elif(current_hour_and_minute[1] == 0): + update_data() await sleep(60)