Merge pull request #135 from sklnd/patch-1

weather: change location quoting mechanism
This commit is contained in:
Ryan Hitchman 2015-08-16 15:06:11 -07:00
commit 1543f7523d
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ def weather(inp, chan='', nick='', reply=None, db=None, api_key=None):
state = http.quote_plus(state) state = http.quote_plus(state)
state += '/' state += '/'
loc = http.quote_plus(loc) loc = http.quote(loc)
url = 'http://api.wunderground.com/api/' url = 'http://api.wunderground.com/api/'
query = '{key}/geolookup/conditions/forecast/q/{state}{loc}.json' \ query = '{key}/geolookup/conditions/forecast/q/{state}{loc}.json' \