This commit is contained in:
DingZQ
2023-02-24 22:41:12 +08:00
parent 0b9ccf5d5c
commit 2abc190a65

View File

@@ -124,7 +124,7 @@ async def fastapi_is_locked_by_me(network: str, req: Request):
@app.post("/lockproject/")
async def fastapi_lock_project(network: str, req: Request):
client_host = req.client.host
if not fastapi_is_locked(network, req):
if not str in lockedPrjs.keys():
lockedPrjs[network] = client_host
return client_host
return ""