Skip to content

Commit

Permalink
Merge pull request open-webui#1637 from open-webui/dev
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
tjbck authored Apr 21, 2024
2 parents d19143d + 1cf4fa9 commit 040ea70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/apps/web/models/tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ def get_tags_by_chat_id_and_user_id(

return [
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_chat_ids_by_tag_name_and_user_id(
Expand Down

0 comments on commit 040ea70

Please sign in to comment.