MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_display

Function get_display

webapp_modern.py:12493–12503  ·  view source on GitHub ↗

Get current EPD display image

()

Source from the content-addressed store, hash-verified

12491 """Get stable, aggregated network data for the Network tab from SQLite database"""
12492 with _network_context_from_request() as requested_slug:
12493 try:
12494 db = get_db(currentdir=shared_data.currentdir)
12495
12496 # Get all hosts from SQLite database
12497 hosts = db.get_all_hosts()
12498
12499 # Live ARP presence. The stored status only ever records
12500 # successes, so on its own it shows every known host as up.
12501 presence = _presence_snapshot_for_request(requested_slug)
12502
12503 # Also get any recent ARP scan cache data for real-time enrichment
12504 recent_arp_data = network_scan_cache.get('arp_hosts', {})
12505
12506 logger.debug(f"Loaded {len(hosts)} entries from SQLite database for stable API")

Callers

nothing calls this directly

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected