diff --git a/Shared/Infrastructure/Scripts/scan-malformed-lists.php b/Shared/Infrastructure/Scripts/scan-malformed-lists.php index 6da08bf0..4db28161 100644 --- a/Shared/Infrastructure/Scripts/scan-malformed-lists.php +++ b/Shared/Infrastructure/Scripts/scan-malformed-lists.php @@ -174,7 +174,7 @@ echo "Iniciando análisis...\n"; echo "─────────────────────────────────────────────\n"; while ($offset < $total) { - $query = "SELECT id, url, html FROM datos_seo_pagina + $query = "SELECT id, page, html FROM datos_seo_pagina WHERE html IS NOT NULL AND html != '' ORDER BY id LIMIT {$batch_size} OFFSET {$offset}"; @@ -189,7 +189,7 @@ while ($offset < $total) { while ($row = $result->fetch_assoc()) { $processed++; $id = $row['id']; - $url = $row['url'] ?? 'N/A'; + $url = $row['page'] ?? 'N/A'; $html = $row['html']; $issues = analyzeMalformedLists($html, $malformed_patterns);