Patch to daily report to include a top 5 summary.

This commit is contained in:
Alex Huddleston 2020-03-26 21:27:26 -05:00
parent 6b7b87e68c
commit 06f0741d0b

View file

@ -1,5 +1,5 @@
#!/bin/python
from lib.parse_data import update_data, get_covid_data
from lib.parse_data import update_data, get_covid_data, get_top_data
from datetime import datetime
from pytz import timezone
from asyncio import sleep
@ -17,4 +17,5 @@ async def background_task(client):
await channel.send('Daily report from: https://www.worldometers.info/coronavirus/')
await channel.send(get_covid_data('USA'))
await channel.send(get_covid_data('TOTAL'))
await channel.send(get_top_data(5))
await sleep(60)