Fixing state_query var name and updating the johns hopkins image
This commit is contained in:
parent
3150695f9a
commit
0b90eee6e7
@ -28,15 +28,15 @@ def sum_numbers(location):
|
||||
location_query = series.loc[series['Country_Region'] == location]
|
||||
if location_query.empty:
|
||||
embed = discord.Embed(description="No results found for %s.\n\nPlease enter a valid Country name or US state" % location, color=0x428bca, type="rich")
|
||||
embed.set_author(name="CSSE at Johns Hopkins University", icon_url='https://avatars2.githubusercontent.com/u/60674295')
|
||||
embed.set_author(name="CSSE at Johns Hopkins University", icon_url='https://www.pngitem.com/pimgs/m/27-270528_johns-hopkins-was-a-founding-member-of-the.png')
|
||||
return embed
|
||||
sums = state_query.sum()
|
||||
sums = location_query.sum()
|
||||
confirmed = sums['Confirmed']
|
||||
deaths = sums['Deaths']
|
||||
recovered = sums['Recovered']
|
||||
|
||||
embed = discord.Embed(description="Most recent Corona stats for %s\nUpdated once a day\n(Last update was %s)" % (location, last_updated), color=0x428bca, type="rich")
|
||||
embed.set_author(name="CSSE at Johns Hopkins University", icon_url='https://avatars2.githubusercontent.com/u/60674295')
|
||||
embed.set_author(name="CSSE at Johns Hopkins University", icon_url='https://www.pngitem.com/pimgs/m/27-270528_johns-hopkins-was-a-founding-member-of-the.png')
|
||||
embed.add_field(name='Confirmed Cases', value=confirmed)
|
||||
embed.add_field(name='Recovered Cases', value=recovered)
|
||||
embed.add_field(name='Deaths', value=deaths)
|
||||
|
Loading…
x
Reference in New Issue
Block a user