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"