weather: use https for the nominatim

master
mutantmonkey 2016-01-12 10:02:14 -08:00
parent 179ed312e9
commit c859ad0d53
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ r_from = re.compile(r'(?i)([+-]\d+):00 from')
def location(q): def location(q):
uri = 'http://nominatim.openstreetmap.org/search/?q={query}&format=json'.\ uri = 'https://nominatim.openstreetmap.org/search/?q={query}&format=json'.\
format(query=web.quote(q)) format(query=web.quote(q))
results = web.get(uri) results = web.get(uri)
data = json.loads(results) data = json.loads(results)