Add pickoperation
This commit is contained in:
4
main.py
4
main.py
@@ -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/")
|
||||||
|
|||||||
@@ -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]]:
|
||||||
|
|||||||
Reference in New Issue
Block a user