Refine
This commit is contained in:
5
main.py
5
main.py
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user