OpenWeatherMap provee imagenes 4x y estaba usando 2x

This commit is contained in:
2020-11-21 03:06:08 -03:00
parent b252630c79
commit 0b0103f71b

View File

@@ -25,7 +25,7 @@ def with_icon_url(weather):
Transforma el codigo de icono que indica el clima
en el url correspondiente del icono
"""
url = 'http://openweathermap.org/img/wn/{0}@2x.png'
url = 'http://openweathermap.org/img/wn/{0}@4x.png'
icon_code = weather['weather'][0]['icon']
modified = copy.deepcopy(weather)