bugfix: database usage

This commit is contained in:
Saifeddine ALOUI 2023-04-10 10:31:49 +02:00
parent ed8181aa53
commit ff3a6d3123

2
app.py
View File

@ -339,7 +339,7 @@ GPT4All:Welcome! I'm here to assist you with anything you need. What can I do fo
def new_discussion(self):
title = request.args.get("title")
self.current_discussion = Discussion.create_discussion(self.db_path, title)
self.current_discussion = self.db.create_discussion(self.db_path, title)
# Get the current timestamp
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")