Fixed error of LockPorject

This commit is contained in:
DingZQ
2023-02-19 17:56:13 +08:00
parent 127a6ed606
commit 52c0e8d624

View File

@@ -112,7 +112,7 @@ async def fastapi_is_locked_by_me(network: str, req: Request):
async def fastapi_lock_project(network: str, req: Request):
client_host = f'{req.client.host}:{req.client.port}'
if fastapi_is_locked(str, req) == False:
if fastapi_is_locked(network, req) == False:
lockedPrjs[network] = client_host
return client_host