File size: 503 Bytes
505a0fe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from ingest.registry import get_all_adapters

def agency_discovery():
    """
    Transparency-only discovery table.
    """
    rows = []
    for adapter in get_all_adapters():
        rows.append({
            "Agency": adapter.name,
            "Status": "Live" if adapter.is_live else "Stub",
            "Reason": (
                "Public FOIA Reading Room"
                if adapter.is_live
                else "robots.txt blocked or no public endpoint"
            )
        })
    return rows