Add debug st.info before st.plotly_chart to diagnose invisible chart
This commit is contained in:
@@ -106,10 +106,19 @@ def validate_manifest(manifest_path: str, report_only: bool = True) -> dict:
|
||||
files = manifest.get("files") or []
|
||||
report = {"missing_files": [], "truncated_evidence": [], "potential_secrets": []}
|
||||
|
||||
def _strip_surrounding_quotes(s: str) -> str:
|
||||
s = s.strip()
|
||||
if len(s) >= 2 and s[0] == s[-1] and s[0] in ('"', "'"):
|
||||
return s[1:-1]
|
||||
return s
|
||||
|
||||
for raw in files:
|
||||
entry = _normalize_entry(raw)
|
||||
path = entry.get("path")
|
||||
evidence = entry.get("evidence_excerpt") or entry.get("evidence") or ""
|
||||
# Remove surrounding quotes if the fallback YAML parser left them in place
|
||||
if isinstance(evidence, str):
|
||||
evidence = _strip_surrounding_quotes(evidence)
|
||||
|
||||
# missing files
|
||||
if path:
|
||||
|
||||
Reference in New Issue
Block a user