Incluir nombre en la api de weather
This commit is contained in:
@@ -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']
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user