From a31cf072628e8abf0441d7456c0da32f83539289 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sat, 15 Oct 2022 17:36:47 +0800 Subject: [PATCH] Batch --- main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.py b/main.py index 485b05a..38814f4 100644 --- a/main.py +++ b/main.py @@ -97,10 +97,8 @@ async def fastapi_sync_with_server(network: str, operationid: int) -> ChangeSet: return sync_with_server(network, operationid) @app.post("/batch/") -async def fastapi_execute_batch_commands(payload: dict = Body(...)) -> ChangeSet: +async def fastapi_execute_batch_commands(network: str, payload: dict = Body(...)) -> ChangeSet: print(payload) - cs = ChangeSet({}) - return api.execute_batch_commands("", cs) # node @app.get("/getnodes/")