From 886b37630c5f1ebd92e623d126bddb7317c4bf65 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Wed, 21 Sep 2022 21:02:35 +0800 Subject: [PATCH] Add API getcurrentoperationid --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 9ee2cb5..2133707 100644 --- a/main.py +++ b/main.py @@ -79,6 +79,10 @@ async def fastapi_redo(network: str): return True +@app.get("/getcurrentoperationid/") +async def fastapi_get_current_operaiton_id(network: str) -> int: + return get_current_operation(network) + # node @app.get("/getnodes/") async def fastapi_get_nodes(network: str) -> list[str]: