From 000321c09cc7b6b5bb6fa7d4e91c5583c8335b36 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sun, 8 Dec 2024 18:56:11 +0800 Subject: [PATCH] Refine --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index efec4f8..1bd1872 100644 --- a/main.py +++ b/main.py @@ -1394,11 +1394,12 @@ async def fastapi_get_node_coord(network: str, node: str) -> dict[str, float] | @app.get("/getnetworkcoords/") async def fastapi_get_network_coords(network: str) -> list[str] | None: coords = get_network_coords(network) + print(coords) result = [] for node_id, coord in coords.items(): print(node_id, coord) - result.append(f"{node_id}:{coord['x']}:{coord['y']}") + print(result) return result ############################################################