diff --git a/renderer.py b/renderer.py index d628b3e..c4e7017 100644 --- a/renderer.py +++ b/renderer.py @@ -805,7 +805,7 @@ def render_routes(): failover_display = failover_disabled for route_id in route_id_list: # Get the routes index: - current_route_index = all_routes_id_list.indexOf(route_id) + current_route_index = all_routes_id_list.index(route_id) if all_routes["routes"][current_route_index]["enabled"]: failover_display = failover_enabled @@ -825,7 +825,7 @@ def render_routes(): # Build the display: for route_id in route_id_list: - idx = all_routes_id_list.indexOf(route_id) + idx = all_routes_id_list.index(route_id) machine = all_routes["routes"][idx]["machine"]["givenName"] machine_id = all_routes["routes"][idx]["machine"]["id"]