Minor fix

This commit is contained in:
Saifeddine ALOUI 2023-06-15 18:51:04 +02:00
parent c8b1fe55d3
commit 110752b81c
2 changed files with 2 additions and 1 deletions

View File

@ -514,8 +514,10 @@ class LoLLMsAPPI():
self.db = DiscussionsDB(self.lollms_paths.personal_path/"databases"/self.db_path)
# If the database is empty, populate it with tables
ASCIIColors.info("Checking discussions database... ",end="")
self.db.create_tables()
self.db.add_missing_columns()
ASCIIColors.success("ok")
# This is used to keep track of messages
self.full_message_list = []

View File

@ -21,7 +21,6 @@ class DiscussionsDB:
def create_tables(self):
ASCIIColors.info("Checking discussions database...")
db_version = 6
with sqlite3.connect(self.db_path) as conn:
cursor = conn.cursor()