From e8af11f8f888aac369857abbfe075809a4460762 Mon Sep 17 00:00:00 2001 From: Dimitri Molenaars Date: Sun, 9 Mar 2014 15:41:41 +0100 Subject: [PATCH] [weather]Fixed Can't find location bug with known locations. --- weather.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weather.py b/weather.py index 66602149b3..5b1f6ea0d1 100644 --- a/weather.py +++ b/weather.py @@ -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')