always force the ~query form
This commit is contained in:
parent
3b00e2445b
commit
0f4dbd2e09
1 changed files with 3 additions and 3 deletions
|
|
@ -248,11 +248,11 @@ def location_processing(location, ip_addr):
|
||||||
# up to this point it is possible that the name
|
# up to this point it is possible that the name
|
||||||
# contains some unicode symbols
|
# contains some unicode symbols
|
||||||
# here we resolve them
|
# here we resolve them
|
||||||
if location is not None and not ascii_only(location):
|
if location is not None: # and not ascii_only(location):
|
||||||
location = "~" + location.lstrip('~ ')
|
location = "~" + location.lstrip('~ ')
|
||||||
|
|
||||||
if location is not None and location.upper() in IATA_CODES:
|
# if location is not None and location.upper() in IATA_CODES:
|
||||||
location = '~%s' % location
|
# location = '~%s' % location
|
||||||
|
|
||||||
if location is not None and location.startswith('~'):
|
if location is not None and location.startswith('~'):
|
||||||
geolocation = geolocator(location_canonical_name(location[1:]))
|
geolocation = geolocator(location_canonical_name(location[1:]))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue