Commit 7b069f79 authored by Guillaume Morel's avatar Guillaume Morel Committed by Cody Zacharias

surround "Near" option with quotes (#145)

* surround "Near" option with quotes

without double quote surrounding, compound location with spaces are not considered

* Change to URL-encoded quotes
parent 2ceb4453
......@@ -79,6 +79,6 @@ async def Search(config, init):
if config.Near:
config.Near = config.Near.replace(" ", "%20")
config.Near = config.Near.replace(",", "%2C")
url += "%20near%3A{0.Near}".format(config)
url += "%20near%3A%22{0.Near}%22".format(config)
return url
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment