From 06580b0266b0ed8bd385221c44eceee585118327 Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Mon, 30 Dec 2024 12:29:24 +0000 Subject: [PATCH] correct chat app ordering (#569) --- examples/pydantic_ai_examples/chat_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pydantic_ai_examples/chat_app.py b/examples/pydantic_ai_examples/chat_app.py index 76bf9714..cc20eb77 100644 --- a/examples/pydantic_ai_examples/chat_app.py +++ b/examples/pydantic_ai_examples/chat_app.py @@ -190,7 +190,7 @@ async def add_messages(self, messages: bytes): async def get_messages(self) -> list[ModelMessage]: c = await self._asyncify( - self._execute, 'SELECT message_list FROM messages order by id desc' + self._execute, 'SELECT message_list FROM messages order by id' ) rows = await self._asyncify(c.fetchall) messages: list[ModelMessage] = []