This commit is contained in:
iFargle
2023-04-02 10:05:29 +09:00
parent 04deed6b73
commit 19a229c595

View File

@@ -682,11 +682,11 @@ def render_routes():
# Get a list of all Route ID's to iterate through:
all_routes_id_list = []
for route in all_routes["routes"]:
all_routes_id_list.append(route["id"])
if route["machine"]["name"]:
all_routes_id_list.append(route["id"])
app.logger.info("Found route %s / machine: %s", str(route["id"]), route["machine"]["name"])
else:
app.logger.info("Route id %s has no machine associated. Skipping", str(route["id"]))
app.logger.info("Route id %s has no machine associated.", str(route["id"]))
route_content = ""