mirror of
https://github.com/chubin/wttr.in.git
synced 2024-10-05 01:42:07 +02:00
for IPs covered by GeoIP2, use country name instead of ISO Code (fixes #209)
This commit is contained in:
parent
2844a94c88
commit
dbb8aab676
@ -117,7 +117,7 @@ def get_location(ip_addr):
|
||||
"""
|
||||
|
||||
response = GEOIP_READER.city(ip_addr)
|
||||
country = response.country.iso_code
|
||||
country = response.country.name
|
||||
city = response.city.name
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user