Merge pull request #135 from sklnd/patch-1
weather: change location quoting mechanism
This commit is contained in:
commit
1543f7523d
|
@ -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' \
|
||||||
|
|
Loading…
Reference in New Issue