Skip to content

Commit

Permalink
fix worldmap using maxmind
Browse files Browse the repository at this point in the history
https://geoip2.readthedocs.io/en/latest/    
2 letter state = subdivisions.most_specific.iso_code dashboard is currently using state to propagate the map, using the city.geoname_id was causing map to not update due to the geo ID being used
  • Loading branch information
lludlow authored Jul 24, 2018
1 parent 978bf33 commit 675cedd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tautulli.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def GeoLite2db(ipaddress):
"measurement": "Tautulli",
"tags": {
"type": "Session",
"region_code": geodata.city.geoname_id,
"region_code": geodata.subdivisions.most_specific.iso_code,
"name": sessions[session]['friendly_name']
},
"time": current_time,
Expand Down

0 comments on commit 675cedd

Please sign in to comment.