mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 21:05:19 +00:00
Fixed: updated get_chat_list_by_user_id method to return all user chats (including those moved to the folders)
This commit is contained in:
parent
4269df041f
commit
b1568878e7
1 changed files with 1 additions and 1 deletions
|
|
@ -393,7 +393,7 @@ class ChatTable:
|
||||||
limit: int = 50,
|
limit: int = 50,
|
||||||
) -> list[ChatModel]:
|
) -> list[ChatModel]:
|
||||||
with get_db() as db:
|
with get_db() as db:
|
||||||
query = db.query(Chat).filter_by(user_id=user_id).filter_by(folder_id=None)
|
query = db.query(Chat).filter_by(user_id=user_id)
|
||||||
if not include_archived:
|
if not include_archived:
|
||||||
query = query.filter_by(archived=False)
|
query = query.filter_by(archived=False)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue