fix(snapshot): Cookie-Dedup + schneller Impressum-Tab + Tabellen-Zahl
- Cookies werden je Vendor nach Name dedupliziert (Consent-Phasen-Dubletten; BMW 2196 → ~772) — in cookie-check + get_snapshot, behebt aufgeblähte Kachel-/Finding-Zahlen. - Impressum-Snapshot-Check überspringt den ~40s-LLM-Schritt (context skip_llm) → Tab lädt sofort statt leer zu bleiben. - Vendor-Tabelle zeigt nur die Cookie-Zahl (kein 'Cookies'-Wort je Zeile). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -218,6 +218,11 @@ async def get_snapshot(snapshot_id: str):
|
||||
snap = load_snapshot(db, snapshot_id)
|
||||
if not snap:
|
||||
raise HTTPException(status_code=404, detail="snapshot not found")
|
||||
if snap.get("cmp_vendors"):
|
||||
from compliance.services.cookie_storage_inventory import (
|
||||
dedupe_vendor_cookies,
|
||||
)
|
||||
snap["cmp_vendors"] = dedupe_vendor_cookies(snap["cmp_vendors"])
|
||||
return snap
|
||||
finally:
|
||||
db.close()
|
||||
|
||||
Reference in New Issue
Block a user