added .db to database

This commit is contained in:
saloui 2023-10-09 12:52:00 +02:00
parent 6f998e471d
commit 06ca56febb

2
app.py
View File

@ -1141,6 +1141,8 @@ class LoLLMsWebUI(LoLLMsAPPI):
def select_database(self):
data = request.get_json()
self.config.db_path = data["name"]
if not self.config.db_path.endswith(".db"):
self.config.db_path += ".db"
print(f'Selecting database {data["name"]}')
# Create database object
self.db = DiscussionsDB(self.lollms_paths.personal_databases_path/data["name"])