From 56d5e7f6a1748bf1a2362cfa21c6e4533668779a Mon Sep 17 00:00:00 2001 From: DingZQ Date: Sat, 15 Oct 2022 18:02:15 +0800 Subject: [PATCH] Refine CS --- main.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/main.py b/main.py index d4140f9..be4389e 100644 --- a/main.py +++ b/main.py @@ -103,12 +103,8 @@ async def fastapi_execute_batch_commands(network: str, req: Request)-> ChangeSet 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.append(jo) - + cs: ChangeSet = ChangeSet() + cs.operations = jo_operations print(cs) print(type(cs)) ops = cs.operations