This commit is contained in:
DingZQ
2022-10-15 15:16:40 +08:00
parent 3ee688d0d6
commit 341e38603c

View File

@@ -492,9 +492,8 @@ async def fast_get_pipe_schema(network: str) -> dict[str, dict[str, Any]]:
@app.post("/addpipe/")
async def fastapi_add_pipe(network: str, pipe: str, node1: str, node2: str, length: float = 0, diameter: float = 0, roughness: float = 0, minorloss: float = 0, status: str = PIPE_STATUS_OPEN) -> ChangeSet:
props : dict[str, any] = {}
props['id'] = pip
props['id'] = pipe
props['node1'] = node1
props['node2'] = node2
props['length'] = length