wttr.in nests the data in the response now, account for that

Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
2026-03-18 16:14:33 -05:00
parent a45b8f41eb
commit 4d2b1d5eb0

View File

@@ -22,7 +22,7 @@ def query_wttr_in(query):
def weather_summary(query):
"""Create a more consumable version of the weather report."""
logger.info("assembling weather summary for '%s'", query)
weather_info = query_wttr_in(query)
weather_info = query_wttr_in(query)['data']
# get some common/nested stuff once now
current = weather_info['current_condition'][0]