mirror of
https://github.com/open-webui/open-webui
synced 2025-02-22 05:08:14 +00:00
fix: multiuser duplicate tag issue
This commit is contained in:
parent
1e919abda3
commit
fe3291acb5
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user