修复高风险预警邮件通知并补充测试

This commit is contained in:
zhangshy
2026-09-12 15:56:50 +08:00
parent 164d55a05a
commit eb4e895e4e
12 changed files with 464 additions and 34 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ async def default_scan_executor() -> dict[str, int | str]:
portal="worker",
)
async with SessionFactory() as session:
return await RiskScanService(session).scan(context)
return await RiskScanService.from_settings(session).scan(context)
async def default_audit_writer(status: str, detail: dict[str, Any]) -> None: