This commit is contained in:
Timothy J. Baek
2024-06-11 00:50:30 -07:00
parent a91db7f7a6
commit 91bc65c7da
2 changed files with 5 additions and 2 deletions

View File

@@ -172,6 +172,7 @@ async def delete_toolkit_by_id(request: Request, id: str, user=Depends(get_admin
if result:
TOOLS = request.app.state.TOOLS
del TOOLS[id]
if id in TOOLS:
del TOOLS[id]
return result