Print setstatus result
This commit is contained in:
4
main.py
4
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:
|
async def fastapi_set_pipe_status(network: str, pipe: str, status: str) -> ChangeSet:
|
||||||
ps = { 'id' : pipe,
|
ps = { 'id' : pipe,
|
||||||
'status' : status }
|
'status' : status }
|
||||||
return set_pipe(network, ChangeSet(ps))
|
ret = set_pipe(network, ChangeSet(ps))
|
||||||
|
print(ret)
|
||||||
|
return ret
|
||||||
|
|
||||||
@app.get("/getpipeproperties/")
|
@app.get("/getpipeproperties/")
|
||||||
async def fastapi_get_pipe_properties(network: str, pipe: str) -> dict[str, Any]:
|
async def fastapi_get_pipe_properties(network: str, pipe: str) -> dict[str, Any]:
|
||||||
|
|||||||
Reference in New Issue
Block a user