diff --git a/main.py b/main.py index 40e8ae1..ba9ac78 100644 --- a/main.py +++ b/main.py @@ -122,6 +122,10 @@ async def fastapi_take_snapeshot(network: str, snapshot: str)-> int: @app.post("/picksnapshot/") async def fastapi_pick_snapeshot(network: str, snapshot: str)-> ChangeSet: return pick_snapshot(network, snapshot) + +@app.post("/pickoperation/") +async def fastapi_pick_operation(network: str, operation: int) -> ChangeSet: + return pick_operation(network, operation) # node @app.get("/getnodes/") diff --git a/tjnetwork.py b/tjnetwork.py index 9f88c8e..3a269e9 100644 --- a/tjnetwork.py +++ b/tjnetwork.py @@ -410,7 +410,7 @@ def set_emitter(name: str, cs: ChangeSet) -> ChangeSet: ############################################################ -# time 21.[EMITTERS] +# time 21.[TIME] ############################################################ def get_time_schema(name: str) -> dict[str, dict[str, Any]]: