From 35c8dda9ef356de0ffda37528e6ae98a5f9ca954 Mon Sep 17 00:00:00 2001 From: iFargle Date: Sun, 2 Apr 2023 08:39:43 +0900 Subject: [PATCH] test --- renderer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"]