mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 21:05:19 +00:00
refac: pinned chat behaviour
This commit is contained in:
parent
b4cd503a02
commit
24f149f686
1 changed files with 1 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ class ChatTable:
|
|||
limit: Optional[int] = None,
|
||||
) -> list[ChatTitleIdResponse]:
|
||||
with get_db() as db:
|
||||
query = db.query(Chat).filter_by(user_id=user_id)
|
||||
query = db.query(Chat).filter_by(user_id=user_id, pinned=False)
|
||||
if not include_archived:
|
||||
query = query.filter_by(archived=False)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue