Refine
This commit is contained in:
3
main.py
3
main.py
@@ -1394,12 +1394,9 @@ 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
|
||||
|
||||
############################################################
|
||||
|
||||
Reference in New Issue
Block a user