fix cache and restart

This commit is contained in:
larssand
2026-06-30 12:33:44 +02:00
parent f95a861eb6
commit de4e77d524
4 changed files with 5 additions and 1 deletions

View File

@@ -261,6 +261,7 @@ async function refresh() {
document.getElementById('liveStatus').innerHTML = [
data.stale ? `<span class="sev-high">Showing cached dashboard data because live MCP fetch failed.</span>` : '',
cache.stored_at ? `Cached snapshot: ${esc(new Date(cache.stored_at * 1000).toLocaleString())}` : '',
`Status schema: ${esc(data.status_schema || 'old')}`,
`Log file: <code>${esc(data.log_path || '')}</code>`,
`Policy file: <code>${esc(data.policy_path || 'none')}</code>`,
`Critical anomalies: ${esc((a.critical || 0))}`,

View File

@@ -306,6 +306,7 @@ def build_status(
summary["raw_sample_total"] = len(events)
summary["aggregate_backed"] = True
status = {
"status_schema": 2,
"generated_at": int(time.time()),
"log_path": log_path,
"policy_path": policy_path,