Change minor_loss to minorloss

This commit is contained in:
DingZQ
2022-09-20 23:42:16 +08:00
parent b23fd91dc9
commit 287fa463cf

View File

@@ -311,8 +311,8 @@ def fastapi_set_tank_coord(name: str, tank: str, x: float, y: float) -> ChangeSe
############################################################
@app.post("/addpipe/")
def fastapi_add_pipe(name: str, pipe: str, node1: str, node2: str, length: float = 0, diameter: float = 0, roughness: float = 0, minor_loss: float = 0, status: str = PIPE_STATUS_OPEN) -> ChangeSet:
return add_pipe(name, pipe, node1, node2, length, diameter, roughness, minor_loss, status)
def fastapi_add_pipe(name: 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:
return add_pipe(name, pipe, node1, node2, length, diameter, roughness, minorloss, status)
@app.post("/deletepipe/")
def fastapi_delete_pipe(name: str, pipe: str) -> ChangeSet: