Refine unlock method

This commit is contained in:
DingZQ
2022-10-03 19:08:24 +08:00
parent 6db9f03b19
commit 507783b1bc

View File

@@ -77,7 +77,8 @@ async def fastapi_lock_project(network: str, id: str):
return True return True
@app.post("/unlockproject/") @app.post("/unlockproject/")
async def fastapi_unlock_project(network: str): async def fastapi_unlock_project(network: str, id: str):
if lockedPrjs[network] == id:
del lockedPrjs[network] del lockedPrjs[network]
return True return True