From 74dd9b561a9f4a0e64ad1ceeacb614890fba92cf Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 20 Apr 2024 19:24:58 -0500 Subject: [PATCH] revert: export chats to include archived chats --- backend/apps/web/models/chats.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/apps/web/models/chats.py b/backend/apps/web/models/chats.py index cc3631d0b..4e1f00834 100644 --- a/backend/apps/web/models/chats.py +++ b/backend/apps/web/models/chats.py @@ -230,16 +230,13 @@ class ChatTable: def get_all_chats(self) -> List[ChatModel]: return [ ChatModel(**model_to_dict(chat)) - for chat in Chat.select() - .where(Chat.archived == False) - .order_by(Chat.updated_at.desc()) + for chat in Chat.select().order_by(Chat.updated_at.desc()) ] def get_all_chats_by_user_id(self, user_id: str) -> List[ChatModel]: return [ ChatModel(**model_to_dict(chat)) for chat in Chat.select() - .where(Chat.archived == False) .where(Chat.user_id == user_id) .order_by(Chat.updated_at.desc()) ]