Change status to string

This commit is contained in:
DingZQ
2023-09-19 23:58:24 +08:00
parent b2eb17f87e
commit 6f60d68cbb

View File

@@ -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))