"examples/transformer-xl/scripts/run_wt103_large.sh" did not exist on "85cc80ab6d03739a257daaead6a8b2c4ebd552e8"
Commit 74dd9b56 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

revert: export chats to include archived chats

parent 2fd2f792
......@@ -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())
]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment