Refine havesnapshot

This commit is contained in:
DingZQ
2022-12-03 10:56:53 +08:00
parent ce7139a9e9
commit 316966b202

View File

@@ -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: