Print setstatus result

This commit is contained in:
DingZQ
2023-09-20 00:04:35 +08:00
parent c5d8b3e993
commit d2d2948285

View File

@@ -799,7 +799,9 @@ async def fastapi_set_pipe_minor_loss(network: str, pipe: str, minor_loss: float
async def fastapi_set_pipe_status(network: str, pipe: str, status: str) -> ChangeSet:
ps = { 'id' : pipe,
'status' : status }
return set_pipe(network, ChangeSet(ps))
ret = set_pipe(network, ChangeSet(ps))
print(ret)
return ret
@app.get("/getpipeproperties/")
async def fastapi_get_pipe_properties(network: str, pipe: str) -> dict[str, Any]: