Skip to content

Commit

Permalink
[weather]Fixed Can't find location bug with known locations.
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrope authored and embolalia committed Mar 9, 2014
1 parent 8b2f9f9 commit e8af11f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weather.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def woeid_search(query):
node for the result, so that location data can still be retrieved. Returns
None if there is no result, or the woeid field is empty.
"""
query = web.urlencode({'q': 'select * from geo.placefinder where text="%s"' % query})
query = 'q=select * from geo.placefinder where text="%s"' % query
body = web.get('http://query.yahooapis.com/v1/public/yql?' + query)
parsed = etree.fromstring(body)
first_result = parsed.find('results/Result')
Expand Down

0 comments on commit e8af11f

Please sign in to comment.