From 675ceddb5e50132ecdbfeefa93a2940bc4637af3 Mon Sep 17 00:00:00 2001 From: Larry Ludlow Date: Mon, 23 Jul 2018 20:30:45 -0400 Subject: [PATCH] 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 --- tautulli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tautulli.py b/tautulli.py index 40262d65..f064150d 100644 --- a/tautulli.py +++ b/tautulli.py @@ -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,