From 34576edd926e4fdc36eafd84f7ffb556a7d11e58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Fri, 17 Jul 2020 19:38:43 +0200 Subject: [PATCH] Fix bug in weather module --- modules/weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/weather.py b/modules/weather.py index 03e835b..0ff1060 100644 --- a/modules/weather.py +++ b/modules/weather.py @@ -92,7 +92,7 @@ def get_weather(token, lat, lon): dt = data_current["dt"] sr = data_current["sunrise"] ss = data_current["sunset"] - current.append(get_icon(data_current["current"]["weather"][0]["id"], dt, sr, ss)) + current.append(get_icon(data_current["weather"][0]["id"], dt, sr, ss)) current.append(format_temp(data_current["temp"])) for i in range(1, 4): -- 2.44.0