for IPs covered by GeoIP2, use country name instead of ISO Code (fixes #209)
This commit is contained in:
parent
2844a94c88
commit
dbb8aab676
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue