From a8e1e7a1a09ef72fe467869df610848efa29b99d Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sat, 15 Oct 2022 17:31:06 +0800 Subject: [PATCH] Remove network --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index c617817..485b05a 100644 --- a/main.py +++ b/main.py @@ -97,10 +97,10 @@ 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(network: str, payload: dict = Body(...)) -> ChangeSet: +async def fastapi_execute_batch_commands(payload: dict = Body(...)) -> ChangeSet: print(payload) cs = ChangeSet({}) - return api.execute_batch_commands(network, cs) + return api.execute_batch_commands("", cs) # node @app.get("/getnodes/")