Adding some logic to not show the vacciene numbers for non-us terrirories
This commit is contained in:
parent
098831b0fe
commit
cc4f27aa54
@ -64,8 +64,9 @@ def sum_numbers(location):
|
||||
embed.add_field(name=':rotating_light: Confirmed Cases :rotating_light:', value=confirmed, inline=False)
|
||||
embed.add_field(name=':hospital: Recovered Cases :hospital:', value=recovered, inline=False)
|
||||
embed.add_field(name=':skull_crossbones: Deaths :skull_crossbones:', value=deaths, inline=False)
|
||||
embed.add_field(name=':sparkles: :syringe: NEW!: Percent vaccinated :syringe: :sparkles:', value=get_vaccination_data(location), inline=False)
|
||||
embed.add_field(name='Source', value="https://github.com/CSSEGISandData/COVID-19\nVaccination numbers pulled from\nhttps://covidvaxcount.live")
|
||||
if 'Not available' not in get_vaccination_data(location):
|
||||
embed.add_field(name=':sparkles: :syringe: Percent vaccinated :syringe: :sparkles:', value=get_vaccination_data(location) + "\nVaccination numbers pulled from\nhttps://covidvaxcount.live", inline=False)
|
||||
embed.add_field(name='Source', value="https://github.com/CSSEGISandData/COVID-19")
|
||||
|
||||
return embed
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user