Refine
This commit is contained in:
1
main.py
1
main.py
@@ -1409,6 +1409,7 @@ async def fastapi_get_network_coords(network: str) -> list[str] | None:
|
||||
@app.get("/getmajornodecoords/")
|
||||
async def fastapi_get_major_node_coords(network: str, diameter: int) -> list[str] | None:
|
||||
coords = get_major_node_coords(network, diameter)
|
||||
print(coords)
|
||||
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