Refine CS

This commit is contained in:
DingZQ
2022-10-15 18:02:15 +08:00
parent 6b92952d96
commit 56d5e7f6a1

View File

@@ -103,12 +103,8 @@ async def fastapi_execute_batch_commands(network: str, req: Request)-> ChangeSet
jo_operations = jo_root['operations'] jo_operations = jo_root['operations']
print(jo_operations) print(jo_operations)
print(type(jo_operations)) print(type(jo_operations))
cs: ChangeSet = ChangeSet({}) cs: ChangeSet = ChangeSet()
for jo in jo_operations: cs.operations = jo_operations
print(jo)
print(type(jo))
cs.append(jo)
print(cs) print(cs)
print(type(cs)) print(type(cs))
ops = cs.operations ops = cs.operations