for IPs covered by GeoIP2, use country name instead of ISO Code (fixes #209)

This commit is contained in:
Igor Chubin
2018-10-27 00:54:05 +02:00
parent 2844a94c88
commit dbb8aab676

View File

@ -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
# #