Merge pull request #786 from ml-vault/main

Allow to configure db path
pull/787/head
zanllp 2025-03-08 17:21:12 +08:00 committed by GitHub
commit bece389db9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class DataBase:
num = 0
path = "iib.db"
path = os.getenv("IIB_DB_PATH", "iib.db")
@classmethod
def get_conn(clz) -> Connection:
@ -887,4 +887,4 @@ class GlobalSetting:
settings = {}
for row in rows:
settings[row[1]] = json.loads(row[0])
return settings
return settings