mirror of
https://github.com/open-webui/open-webui
synced 2025-04-18 21:38:28 +00:00
refac: pinned chat behaviour
This commit is contained in:
parent
b4cd503a02
commit
24f149f686
@ -276,7 +276,7 @@ class ChatTable:
|
|||||||
limit: Optional[int] = None,
|
limit: Optional[int] = None,
|
||||||
) -> list[ChatTitleIdResponse]:
|
) -> list[ChatTitleIdResponse]:
|
||||||
with get_db() as db:
|
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:
|
if not include_archived:
|
||||||
query = query.filter_by(archived=False)
|
query = query.filter_by(archived=False)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user