From 0f4dbd2e093c2558df76d4d18288c28667cd6d78 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sun, 25 Aug 2019 20:37:54 +0200 Subject: [PATCH] always force the ~query form --- lib/location.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/location.py b/lib/location.py index 7d191b7..39d0cfe 100644 --- a/lib/location.py +++ b/lib/location.py @@ -248,11 +248,11 @@ def location_processing(location, ip_addr): # up to this point it is possible that the name # contains some unicode symbols # 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('~ ') - if location is not None and location.upper() in IATA_CODES: - location = '~%s' % location + # if location is not None and location.upper() in IATA_CODES: + # location = '~%s' % location if location is not None and location.startswith('~'): geolocation = geolocator(location_canonical_name(location[1:]))