fix(consent-history): banner_provider als Fallback fürs CMP (#62)
Storage-Keys fehlen in Phase A (vor Consent) oft → provider blieb leer. Jetzt fällt detect_consent_history auf den bereits aus dem Banner-DOM erkannten banner_provider zurück → korrekter Anbieter + history_capable auch ohne Storage-Eintrag. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -280,7 +280,8 @@ async def run_consent_test(
|
||||
# #62: Consent-Historie/Widerruf (Borlabs-Stil) erkennen.
|
||||
try:
|
||||
from services.consent_history import detect_consent_history
|
||||
result.consent_history = await detect_consent_history(page_a)
|
||||
result.consent_history = await detect_consent_history(
|
||||
page_a, result.banner_provider)
|
||||
except Exception as _che:
|
||||
logger.warning("consent-history detection failed: %s", _che)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user