This commit is contained in:
DingZQ
2025-01-01 10:27:15 +08:00
parent 9e7a4616b4
commit fa00a5ff81

View File

@@ -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']}")