Patch to daily report to include a top 5 summary.
This commit is contained in:
parent
6b7b87e68c
commit
06f0741d0b
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/python
|
#!/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 datetime import datetime
|
||||||
from pytz import timezone
|
from pytz import timezone
|
||||||
from asyncio import sleep
|
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('Daily report from: https://www.worldometers.info/coronavirus/')
|
||||||
await channel.send(get_covid_data('USA'))
|
await channel.send(get_covid_data('USA'))
|
||||||
await channel.send(get_covid_data('TOTAL'))
|
await channel.send(get_covid_data('TOTAL'))
|
||||||
|
await channel.send(get_top_data(5))
|
||||||
await sleep(60)
|
await sleep(60)
|
||||||
|
|
Reference in a new issue