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

guess they went back to the old format

This reverts commit 4d2b1d5eb0.
This commit is contained in:
2026-03-30 10:30:50 -05:00
parent 4d2b1d5eb0
commit 0c7a55044f

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)['data']
weather_info = query_wttr_in(query)
# get some common/nested stuff once now
current = weather_info['current_condition'][0]