mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-31 00:23:52 +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):
|
def select_database(self):
|
||||||
data = request.get_json()
|
data = request.get_json()
|
||||||
self.config.db_path = data["name"]
|
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"]}')
|
print(f'Selecting database {data["name"]}')
|
||||||
# Create database object
|
# Create database object
|
||||||
self.db = DiscussionsDB(self.lollms_paths.personal_databases_path/data["name"])
|
self.db = DiscussionsDB(self.lollms_paths.personal_databases_path/data["name"])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user