Skip to content

Commit

Permalink
Stats for the whole country
Browse files Browse the repository at this point in the history
  • Loading branch information
FistOfTheNorthStar committed Apr 20, 2020
1 parent d1b2935 commit e3900f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/corona.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def fetch_corona_total
end

def fetch_corona(country)
JSON.parse(OpenUri.("https://api.covid19api.com/live/country/#{country}/status/confirmed"))
#JSON.parse(OpenUri.("https://api.covid19api.com/live/country/#{country}/status/confirmed"))
JSON.parse(OpenUri.("https://api.covid19api.com/dayone/country/#{country}"))
end

end

0 comments on commit e3900f2

Please sign in to comment.