weather: change location quoting mechanism
This fixes two word place names, like 'Las Vegas, Nevada'
This commit is contained in:
parent
374bdbc548
commit
f6d376a207
|
@ -60,7 +60,7 @@ def weather(inp, chan='', nick='', reply=None, db=None, api_key=None):
|
|||
state = http.quote_plus(state)
|
||||
state += '/'
|
||||
|
||||
loc = http.quote_plus(loc)
|
||||
loc = http.quote(loc)
|
||||
|
||||
url = 'http://api.wunderground.com/api/'
|
||||
query = '{key}/geolookup/conditions/forecast/q/{state}{loc}.json' \
|
||||
|
|
Loading…
Reference in New Issue