Add pickoperation

This commit is contained in:
DingZQ
2022-10-30 23:00:01 +08:00
parent 39b53a3713
commit 8bd59827e4
2 changed files with 5 additions and 1 deletions

View File

@@ -122,6 +122,10 @@ async def fastapi_take_snapeshot(network: str, snapshot: str)-> int:
@app.post("/picksnapshot/") @app.post("/picksnapshot/")
async def fastapi_pick_snapeshot(network: str, snapshot: str)-> ChangeSet: async def fastapi_pick_snapeshot(network: str, snapshot: str)-> ChangeSet:
return pick_snapshot(network, snapshot) return pick_snapshot(network, snapshot)
@app.post("/pickoperation/")
async def fastapi_pick_operation(network: str, operation: int) -> ChangeSet:
return pick_operation(network, operation)
# node # node
@app.get("/getnodes/") @app.get("/getnodes/")

View File

@@ -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]]: def get_time_schema(name: str) -> dict[str, dict[str, Any]]: