From 789e97514886374c5795ffa99f33f67e626da827 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 07:07:35 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neural_network/chatbot/chat_db.py b/neural_network/chatbot/chat_db.py index b537f4121..5f2751294 100644 --- a/neural_network/chatbot/chat_db.py +++ b/neural_network/chatbot/chat_db.py @@ -114,7 +114,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 """ ) @@ -241,6 +241,6 @@ def chat_session() -> None: conversation_history = conversation_history[-3:] -# starting a chat session +# starting a chat session create_tables() chat_session()