diff --git a/app/utils/populations.py b/app/utils/populations.py index 1d8bd843..a024ac2f 100644 --- a/app/utils/populations.py +++ b/app/utils/populations.py @@ -20,7 +20,7 @@ def fetch_populations(): mappings = {} # Fetch the countries. - countries = requests.get("http://api.geonames.org/countryInfoJSON?username=dperic").json()["geonames"] + countries = requests.get("https://www.webcodesign.de/population").json()["data"] # Go through all the countries and perform the mapping. for country in countries: