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

pull/228/head
Igor Chubin 6 years ago
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…
Cancel
Save