Refine unlock method
This commit is contained in:
5
main.py
5
main.py
@@ -77,8 +77,9 @@ async def fastapi_lock_project(network: str, id: str):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
@app.post("/unlockproject/")
|
@app.post("/unlockproject/")
|
||||||
async def fastapi_unlock_project(network: str):
|
async def fastapi_unlock_project(network: str, id: str):
|
||||||
del lockedPrjs[network]
|
if lockedPrjs[network] == id:
|
||||||
|
del lockedPrjs[network]
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# undo/redo
|
# undo/redo
|
||||||
|
|||||||
Reference in New Issue
Block a user