From 321ce5ae71c138a8dfd44ea8a9b594c1146a5c25 Mon Sep 17 00:00:00 2001 From: iFargle Date: Tue, 28 Mar 2023 14:49:05 +0900 Subject: [PATCH] test --- renderer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/renderer.py b/renderer.py index 4b5b5c1..e38372f 100644 --- a/renderer.py +++ b/renderer.py @@ -804,8 +804,9 @@ def render_routes(): # Get info on every route in the list: machine = all_routes["routes"][int(route_id)]["machine"]["givenName"] machine_id = all_routes["routes"][int(route_id)]["machine"]["id"] - is_primary = bool(all_routes["routes"][int(route_id)]["isPrimary"]) - is_enabled = bool(all_routes["routes"][int(route_id)]["enabled"]) + is_primary = all_routes["routes"][int(route_id)]["isPrimary"] + is_enabled = all_routes["routes"][int(route_id)]["enabled"] + app.logger.debug("Machine: [%s] %s : %s / %s", str(machjine_id), str(machine), str(is_enabled), str(is_primary)) # Set up the display code: enabled = "fiber_manual_record"