Refine havesnapshot
This commit is contained in:
4
main.py
4
main.py
@@ -127,8 +127,8 @@ async def fastapi_redo(network: str):
|
||||
return execute_redo(network)
|
||||
|
||||
@app.get('/havesnapshot/')
|
||||
async def fastapi_get_snapshot(network: str) -> bool:
|
||||
return have_snapshot(network)
|
||||
async def fastapi_have_snapshot(network: str, tag: str) -> bool:
|
||||
return have_snapshot(network, tag)
|
||||
|
||||
@app.post('/takesnapshot/')
|
||||
def fastapi_take_snapshot(network: str, tag: str) -> int | None:
|
||||
|
||||
Reference in New Issue
Block a user