Refine
This commit is contained in:
2
main.py
2
main.py
@@ -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']}")
|
||||
|
||||
Reference in New Issue
Block a user