sharnett / myweather

simple weather forecast webpage
www.seanweather.com
6 stars 3 forks source link

jsonify getting unicode weather_data rather than dict #27

Closed sharnett closed 7 years ago

sharnett commented 7 years ago

Lots of these errors since the recent changes:

  File "./wunderground.py", line 76, in jsonify
    stringified = [row_string.format(**row) for row in weather_data]
TypeError: format() argument after ** must be a mapping, not unicode

Add a unit test or something

sharnett commented 7 years ago

Fixed e77f117f9127f64f159b7bc0c306e5eb5e98be69