From 9a1209169175ffc1c17841cc24d09fb865295c9a Mon Sep 17 00:00:00 2001 From: DingZQ Date: Fri, 24 Feb 2023 22:42:08 +0800 Subject: [PATCH] Refine --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 9d5b7bb..9eb17cb 100644 --- a/main.py +++ b/main.py @@ -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 str in lockedPrjs.keys(): + if not network in lockedPrjs.keys(): lockedPrjs[network] = client_host return client_host return ""