This commit is contained in:
DingZQ
2023-02-24 22:40:13 +08:00
parent b35a0865b9
commit 0b9ccf5d5c

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 fastapi_is_locked(network, req) == False:
if not fastapi_is_locked(network, req):
lockedPrjs[network] = client_host
return client_host
return ""