Change status to string
This commit is contained in:
2
main.py
2
main.py
@@ -796,7 +796,7 @@ async def fastapi_set_pipe_minor_loss(network: str, pipe: str, minor_loss: float
|
||||
return set_pipe(network, ChangeSet(ps))
|
||||
|
||||
@app.post("/setpipestatus/")
|
||||
async def fastapi_set_pipe_status(network: str, pipe: str, status: float) -> ChangeSet:
|
||||
async def fastapi_set_pipe_status(network: str, pipe: str, status: str) -> ChangeSet:
|
||||
ps = { 'id' : pipe,
|
||||
'status' : status }
|
||||
return set_pipe(network, ChangeSet(ps))
|
||||
|
||||
Reference in New Issue
Block a user