From 98cf6277a80d3fcca9652c076f9c5be14d5eec35 Mon Sep 17 00:00:00 2001 From: DingZQ Date: Fri, 24 Feb 2023 22:44:31 +0800 Subject: [PATCH] Refine --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 9eb17cb..49c9185 100644 --- a/main.py +++ b/main.py @@ -133,7 +133,9 @@ async def fastapi_lock_project(network: str, req: Request): async def fastapi_unlock_project(network: str, req: Request): client_host = req.client.host if lockedPrjs[network] == client_host: + print("delete key") del lockedPrjs[network] + return True ### operations