Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
9bd05449
Commit
9bd05449
authored
Jun 11, 2024
by
Timothy J. Baek
Browse files
refac
parent
2be14d57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
backend/apps/webui/routers/tools.py
backend/apps/webui/routers/tools.py
+4
-0
No files found.
backend/apps/webui/routers/tools.py
View file @
9bd05449
...
@@ -176,4 +176,8 @@ async def delete_toolkit_by_id(request: Request, id: str, user=Depends(get_admin
...
@@ -176,4 +176,8 @@ async def delete_toolkit_by_id(request: Request, id: str, user=Depends(get_admin
if
id
in
TOOLS
:
if
id
in
TOOLS
:
del
TOOLS
[
id
]
del
TOOLS
[
id
]
# delete the toolkit file
toolkit_path
=
os
.
path
.
join
(
TOOLS_DIR
,
f
"
{
id
}
.py"
)
os
.
remove
(
toolkit_path
)
return
result
return
result
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment