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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user