From 341e38603cca1d03753c6286550c0f8710597bfb Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sat, 15 Oct 2022 15:16:40 +0800 Subject: [PATCH] Add pipe --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index 887d6da..14c8ae3 100644 --- a/main.py +++ b/main.py @@ -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