Fixed lock/unlock error
This commit is contained in:
4
main.py
4
main.py
@@ -74,12 +74,12 @@ async def fastapi_is_locked(network: str):
|
|||||||
|
|
||||||
@app.post("/lockproject/")
|
@app.post("/lockproject/")
|
||||||
async def fastapi_lock_project(network: str, id: str):
|
async def fastapi_lock_project(network: str, id: str):
|
||||||
lockedPrjs[str] = id
|
lockedPrjs[network] = id
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@app.post("/unlockproject/")
|
@app.post("/unlockproject/")
|
||||||
async def fastapi_unlock_project(network: str):
|
async def fastapi_unlock_project(network: str):
|
||||||
del lockedPrjs[str]
|
del lockedPrjs[network]
|
||||||
return True
|
return True
|
||||||
|
|
||||||
# undo/redo
|
# undo/redo
|
||||||
|
|||||||
Reference in New Issue
Block a user