From 0b90eee6e76fd3ed13ad99634679680c53855d2e Mon Sep 17 00:00:00 2001 From: luke Date: Thu, 26 Mar 2020 17:36:49 -0700 Subject: [PATCH] Fixing state_query var name and updating the johns hopkins image --- app/corona.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/corona.py b/app/corona.py index 2d4a8db8..20841071 100644 --- a/app/corona.py +++ b/app/corona.py @@ -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)