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:
parent
bee415a56e
commit
54c69b575c
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue