Use the /total/country/<cc> endpoint instead of /total/dayone/country/<cc>

This commit is contained in:
Fabio Manganiello 2020-05-17 16:52:37 +02:00
parent 0c10825d2e
commit d595688d55
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ class Covid19Plugin(Plugin):
countries = self._get_countries(country)
ret = []
for country in countries:
ret += requests.get('{}/total/dayone/country/{}'.format(self.base_url, country)).json()
ret += requests.get('{}/total/country/{}'.format(self.base_url, country)).json()
return ret