From b4f3aa2c1bb4b0b9a88358745c7ec72724471259 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sat, 13 May 2023 09:34:05 +0800 Subject: [PATCH] Refine --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 9d02593..2dda06b 100644 --- a/main.py +++ b/main.py @@ -54,6 +54,7 @@ async def fastapi_set_extension_data(network: str, req: Request) -> ChangeSet: props = await req.json() print(props) cs = set_extension_data(network, ChangeSet(props)) + print(cs.operations[0]) return cs ############################################################ @@ -245,7 +246,9 @@ async def fastapi_execute_batch_commands(network: str, req: Request)-> ChangeSet jo_root = await req.json() cs: ChangeSet = ChangeSet() cs.operations = jo_root['operations'] - return execute_batch_commands(network, cs) + rcs = execute_batch_commands(network, cs) + print(rcs) + return rcs @app.post("/compressedbatch/") async def fastapi_execute_compressed_batch_commands(network: str, req: Request)-> ChangeSet: