Delete pipe

This commit is contained in:
DingZQ
2022-10-16 08:43:16 +08:00
parent a5badd1d32
commit e1f63fa403

View File

@@ -513,7 +513,8 @@ async def fastapi_add_pipe(network: str, pipe: str, node1: str, node2: str, leng
@app.post("/deletepipe/")
async def fastapi_delete_pipe(network: str, pipe: str) -> ChangeSet:
return delete_pipe(network, pipe)
ps = {'id' : pipe}
return delete_pipe(network, ChangeSet(ps))
@app.get("/getpipenode1/")
async def fastapi_get_pipe_node1(network: str, pipe: str) -> str | None: