fix: Init db error

pull/15820/head^2
wangruidong 2025-08-18 15:42:10 +08:00 committed by Bryan
parent d0e625e322
commit ee7c6b4708
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ def init_sqlite_db():
settings.APPS_DIR, 'accounts', 'automations',
'check_account', 'leak_passwords.db'
)
os.makedirs(os.path.dirname(db_path), exist_ok=True)
shutil.copy(src, db_path)
logger.info(f'init sqlite db {db_path}')
return db_path