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