This commit is contained in:
DingZQ
2023-05-13 09:34:05 +08:00
parent 69c5bbcb71
commit b4f3aa2c1b

View File

@@ -54,6 +54,7 @@ async def fastapi_set_extension_data(network: str, req: Request) -> ChangeSet:
props = await req.json()
print(props)
cs = set_extension_data(network, ChangeSet(props))
print(cs.operations[0])
return cs
############################################################
@@ -245,7 +246,9 @@ async def fastapi_execute_batch_commands(network: str, req: Request)-> ChangeSet
jo_root = await req.json()
cs: ChangeSet = ChangeSet()
cs.operations = jo_root['operations']
return execute_batch_commands(network, cs)
rcs = execute_batch_commands(network, cs)
print(rcs)
return rcs
@app.post("/compressedbatch/")
async def fastapi_execute_compressed_batch_commands(network: str, req: Request)-> ChangeSet: