mirror of
https://github.com/chubin/wttr.in.git
synced 2025-08-13 07:27:33 +02:00
fixed location for localhost
This commit is contained in:
@ -264,7 +264,7 @@ def location_processing(location, ip_addr):
|
||||
# if location is not None and location.upper() in IATA_CODES:
|
||||
# location = '~%s' % location
|
||||
|
||||
if location is not None and location.startswith('~'):
|
||||
if location is not None and not location.startswith("~-,") and location.startswith('~'):
|
||||
geolocation = geolocator(location_canonical_name(location[1:]))
|
||||
if geolocation is not None:
|
||||
if not override_location_name:
|
||||
|
Reference in New Issue
Block a user