This commit is contained in:
DingZQ
2024-12-26 22:37:24 +08:00
parent 0e44625f00
commit 97b69eb5d0

View File

@@ -1397,7 +1397,7 @@ async def fastapi_get_node_coord(network: str, node: str) -> dict[str, float] |
# type: junction, reservoir, tank
@app.get("/getnetworkcoords/")
async def fastapi_get_network_coords(network: str) -> list[str] | None:
coords = get_network_coords(network)
coords = get_network_node_coords(network)
result = []
for node_id, coord in coords.items():
result.append(f"{node_id}:{coord['type']}:{coord['x']}:{coord['y']}")