Return ChangeSet for undo and redo

This commit is contained in:
DingZQ
2022-10-02 22:11:30 +08:00
parent 950875e4db
commit a4489ab5cf

View File

@@ -84,15 +84,11 @@ async def fastapi_unlock_project(network: str):
# undo/redo
@app.post("/undo/")
async def fastapi_undo(network: str):
execute_undo(network)
return True
return execute_undo(network)
@app.post("/redo/")
async def fastapi_redo(network: str):
execute_redo(network)
return True
return execute_redo(network)
@app.get("/getcurrentoperationid/")
async def fastapi_get_current_operaiton_id(network: str) -> int: