Harden account import/continuous behavior and finish multi-account UI polish
This commit is contained in:
@@ -35,7 +35,13 @@ def health_payload(
|
||||
"path": str(session_file),
|
||||
},
|
||||
}
|
||||
checks["accounts"] = account_checks
|
||||
checks["accounts"] = {
|
||||
"ok": all(
|
||||
item.get("data_dir", {}).get("ok", False)
|
||||
for item in account_checks.values()
|
||||
),
|
||||
"items": account_checks,
|
||||
}
|
||||
|
||||
ok = all(item.get("ok", False) for item in checks.values())
|
||||
return {"ok": ok, "status": "ok" if ok else "degraded", "checks": checks}
|
||||
|
||||
Reference in New Issue
Block a user