feat: 采集和导出固定由排队进程执行
This commit is contained in:
@@ -62,7 +62,6 @@ def perform_install(body: dict) -> None:
|
||||
admin_password = str(body.get("adminPassword") or "")
|
||||
if not admin_username or not admin_password:
|
||||
raise InstallError("请填写管理员账号和密码")
|
||||
separate_worker = bool(body.get("separateWorker"))
|
||||
use_sqlite = bool(body.get("sqlite"))
|
||||
data_dir().mkdir(parents=True, exist_ok=True)
|
||||
if use_sqlite:
|
||||
@@ -101,7 +100,6 @@ def perform_install(body: dict) -> None:
|
||||
db_user=username,
|
||||
db_password=password,
|
||||
jwt_secret=secrets.token_hex(32),
|
||||
inline_worker=not separate_worker,
|
||||
)
|
||||
)
|
||||
session.add(User(username=admin_username, password_hash=hash_password(admin_password), role="admin"))
|
||||
|
||||
Reference in New Issue
Block a user