From 419fa188bfb0d2194246c81649654024faf1f8bb Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sat, 15 Oct 2022 17:50:54 +0800 Subject: [PATCH] Batch --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 414257f..acf2c59 100644 --- a/main.py +++ b/main.py @@ -101,8 +101,12 @@ 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({}) for jo in jo_operations: + print(jo) + print(type(jo)) cs.add(jo) return execute_batch_commands(network, cs)