From 7c4905290412629fffe5aefcb117a58ba9dadad5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 20 Oct 2024 06:36:55 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- neural_network/chatbot/chat_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neural_network/chatbot/chat_db.py b/neural_network/chatbot/chat_db.py index c12e311bc..ad42def0f 100644 --- a/neural_network/chatbot/chat_db.py +++ b/neural_network/chatbot/chat_db.py @@ -107,7 +107,7 @@ def get_latest_chat_id() -> int: cursor = conn.cursor() cursor.execute( """ - SELECT chat_id FROM ChatDB.Chat_history + SELECT chat_id FROM ChatDB.Chat_history ORDER BY chat_id DESC LIMIT 1 """ )