From dbb8aab676bd301d843f0a5172fb22d44df870d8 Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sat, 27 Oct 2018 00:54:05 +0200 Subject: [PATCH] for IPs covered by GeoIP2, use country name instead of ISO Code (fixes #209) --- lib/location.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/location.py b/lib/location.py index 4ceb76b..369a239 100644 --- a/lib/location.py +++ b/lib/location.py @@ -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 #