Refine
This commit is contained in:
2
main.py
2
main.py
@@ -133,7 +133,9 @@ async def fastapi_lock_project(network: str, req: Request):
|
|||||||
async def fastapi_unlock_project(network: str, req: Request):
|
async def fastapi_unlock_project(network: str, req: Request):
|
||||||
client_host = req.client.host
|
client_host = req.client.host
|
||||||
if lockedPrjs[network] == client_host:
|
if lockedPrjs[network] == client_host:
|
||||||
|
print("delete key")
|
||||||
del lockedPrjs[network]
|
del lockedPrjs[network]
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
### operations
|
### operations
|
||||||
|
|||||||
Reference in New Issue
Block a user