mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-18 02:39:47 +00:00
added .db to database
This commit is contained in:
parent
6f998e471d
commit
06ca56febb
2
app.py
2
app.py
@ -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"])
|
||||
|
Loading…
Reference in New Issue
Block a user