From a5badd1d32b3c0d5b367e0655d44e26b91b72207 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sat, 15 Oct 2022 18:05:18 +0800 Subject: [PATCH] Refine code --- main.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/main.py b/main.py index be4389e..7fb536e 100644 --- a/main.py +++ b/main.py @@ -99,18 +99,8 @@ async def fastapi_sync_with_server(network: str, operationid: int) -> ChangeSet: @app.post("/batch/") async def fastapi_execute_batch_commands(network: str, req: Request)-> ChangeSet: jo_root = await req.json() - print(jo_root) - jo_operations = jo_root['operations'] - print(jo_operations) - print(type(jo_operations)) cs: ChangeSet = ChangeSet() - cs.operations = jo_operations - print(cs) - print(type(cs)) - ops = cs.operations - print(ops) - print(type(ops)) - + cs.operations = jo_root['operations'] return execute_batch_commands(network, cs) # node