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 # undo/redo
@app.post("/undo/") @app.post("/undo/")
async def fastapi_undo(network: str): async def fastapi_undo(network: str):
execute_undo(network) return execute_undo(network)
return True
@app.post("/redo/") @app.post("/redo/")
async def fastapi_redo(network: str): async def fastapi_redo(network: str):
execute_redo(network) return execute_redo(network)
return True
@app.get("/getcurrentoperationid/") @app.get("/getcurrentoperationid/")
async def fastapi_get_current_operaiton_id(network: str) -> int: async def fastapi_get_current_operaiton_id(network: str) -> int: