mirror of
https://github.com/chubin/wttr.in.git
synced 2025-08-13 23:38:24 +02:00
for IPs covered by GeoIP2, use country name instead of ISO Code (fixes #209)
This commit is contained in:
@ -117,7 +117,7 @@ def get_location(ip_addr):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
response = GEOIP_READER.city(ip_addr)
|
response = GEOIP_READER.city(ip_addr)
|
||||||
country = response.country.iso_code
|
country = response.country.name
|
||||||
city = response.city.name
|
city = response.city.name
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user