Refine
This commit is contained in:
2
main.py
2
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 ""
|
||||
|
||||
Reference in New Issue
Block a user