From cac61d9492ad4f42d5b30752f506d4762e0a4460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Cort=C3=A9s?= Date: Sat, 21 Nov 2020 04:04:02 -0300 Subject: [PATCH] Incluir nombre en la api de weather --- home/services/weather.py | 1 + 1 file changed, 1 insertion(+) diff --git a/home/services/weather.py b/home/services/weather.py index 1d2a797..7008906 100644 --- a/home/services/weather.py +++ b/home/services/weather.py @@ -38,6 +38,7 @@ def simplify_response(weather): Simplifica infinitamente lo que muestra la api :3 """ return { + 'name': weather['name'], 'temp': weather['main']['temp'], 'icon': weather['weather'][0]['url'] }