Refine unlock
This commit is contained in:
2
main.py
2
main.py
@@ -137,7 +137,7 @@ async def fastapi_lock_project(network: str, req: Request):
|
||||
return 2
|
||||
|
||||
@app.post("/unlockproject/")
|
||||
async def fastapi_unlock_project(network: str, req: Request):
|
||||
def fastapi_unlock_project(network: str, req: Request):
|
||||
client_host = req.client.host
|
||||
if lockedPrjs[network] == client_host:
|
||||
print("delete key")
|
||||
|
||||
Reference in New Issue
Block a user