Add pipe
This commit is contained in:
3
main.py
3
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
|
||||
|
||||
Reference in New Issue
Block a user