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
9c012971
Commit
9c012971
authored
Jul 01, 2024
by
Timothy J. Baek
Browse files
fix
parent
6d350fb8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
backend/apps/webui/models/tools.py
backend/apps/webui/models/tools.py
+1
-2
No files found.
backend/apps/webui/models/tools.py
View file @
9c012971
...
@@ -170,8 +170,7 @@ class ToolsTable:
...
@@ -170,8 +170,7 @@ class ToolsTable:
user_settings
[
"tools"
][
"valves"
][
id
]
=
valves
user_settings
[
"tools"
][
"valves"
][
id
]
=
valves
# Update the user settings in the database
# Update the user settings in the database
query
=
Users
.
update_user_by_id
(
user_id
,
{
"settings"
:
user_settings
})
Users
.
update_user_by_id
(
user_id
,
{
"settings"
:
user_settings
})
query
.
execute
()
return
user_settings
[
"tools"
][
"valves"
][
id
]
return
user_settings
[
"tools"
][
"valves"
][
id
]
except
Exception
as
e
:
except
Exception
as
e
:
...
...
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