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 fastapi_is_locked(network, req) == False:
|
||||
if not fastapi_is_locked(network, req):
|
||||
lockedPrjs[network] = client_host
|
||||
return client_host
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user