From 8bcfa6a1526ce1460a289be1744af8183c8df340 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Sat, 17 Jun 2023 19:45:51 +0200 Subject: [PATCH] removed stuff --- api/db.py | 3 ++- app.py | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/api/db.py b/api/db.py index ab6e413b..68d95626 100644 --- a/api/db.py +++ b/api/db.py @@ -364,8 +364,9 @@ class Discussion: message_id (int): The id of the message to be changed new_content (str): The nex message content """ + current_date_time = datetime.now().strftime('%Y-%m-%d %H:%M:%S') self.discussions_db.update( - f"UPDATE message SET content = ?, finished_generating_at = ? WHERE id = ?",(new_content, datetime.now().strftime('%Y-%m-%d %H:%M:%S'),message_id) + f"UPDATE message SET content = ?, finished_generating_at = ? WHERE id = ?",(new_content, current_date_time,message_id) ) def message_rank_up(self, message_id): diff --git a/app.py b/app.py index 0d72f89d..e92234bc 100644 --- a/app.py +++ b/app.py @@ -864,9 +864,7 @@ class LoLLMsWebUI(LoLLMsAPPI): return "title renamed successfully" def load_discussion(self): - print("- Loading discussion") data = request.get_json() - print(" Recovered json data") if "id" in data: discussion_id = data["id"] self.current_discussion = Discussion(discussion_id, self.db) @@ -876,7 +874,6 @@ class LoLLMsWebUI(LoLLMsAPPI): self.current_discussion = Discussion(discussion_id, self.db) else: self.current_discussion = self.db.create_discussion() - print(f" Discussion id :{discussion_id}") messages = self.current_discussion.get_messages()