fix worldmap using maxmind

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
This commit is contained in:
Larry Ludlow 2018-07-23 20:30:45 -04:00 committed by GitHub
parent bee415a56e
commit 54c69b575c

View file

@ -60,7 +60,7 @@ for session in sessions.keys():
"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,