From d2d29482856e5ff72f5903cbe703a9da452af639 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Wed, 20 Sep 2023 00:04:35 +0800 Subject: [PATCH] Print setstatus result --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 2bf1abc..6627319 100644 --- a/main.py +++ b/main.py @@ -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]: