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
d19143dd
Unverified
Commit
d19143dd
authored
Apr 20, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Apr 20, 2024
Browse files
Merge pull request #1636 from open-webui/dev
fix: multiuser duplicate tag issue
parents
9873cad3
fe3291ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
backend/apps/web/models/tags.py
backend/apps/web/models/tags.py
+3
-1
No files found.
backend/apps/web/models/tags.py
View file @
d19143dd
...
@@ -136,7 +136,9 @@ class TagTable:
...
@@ -136,7 +136,9 @@ class TagTable:
return
[
return
[
TagModel
(
**
model_to_dict
(
tag
))
TagModel
(
**
model_to_dict
(
tag
))
for
tag
in
Tag
.
select
().
where
(
Tag
.
name
.
in_
(
tag_names
))
for
tag
in
Tag
.
select
()
.
where
(
Tag
.
user_id
==
user_id
)
.
where
(
Tag
.
name
.
in_
(
tag_names
))
]
]
def
get_tags_by_chat_id_and_user_id
(
def
get_tags_by_chat_id_and_user_id
(
...
...
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