mirror of
https://github.com/chubin/wttr.in.git
synced 2025-08-13 15:37:03 +02:00
always force the ~query form
This commit is contained in:
@ -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:]))
|
||||
|
Reference in New Issue
Block a user