Fix column name in malformed lists scanner
Changed 'url' to 'page' to match actual table schema in preciosunitarios_seo.datos_seo_pagina 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -174,7 +174,7 @@ echo "Iniciando análisis...\n";
|
|||||||
echo "─────────────────────────────────────────────\n";
|
echo "─────────────────────────────────────────────\n";
|
||||||
|
|
||||||
while ($offset < $total) {
|
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 != ''
|
WHERE html IS NOT NULL AND html != ''
|
||||||
ORDER BY id
|
ORDER BY id
|
||||||
LIMIT {$batch_size} OFFSET {$offset}";
|
LIMIT {$batch_size} OFFSET {$offset}";
|
||||||
@@ -189,7 +189,7 @@ while ($offset < $total) {
|
|||||||
while ($row = $result->fetch_assoc()) {
|
while ($row = $result->fetch_assoc()) {
|
||||||
$processed++;
|
$processed++;
|
||||||
$id = $row['id'];
|
$id = $row['id'];
|
||||||
$url = $row['url'] ?? 'N/A';
|
$url = $row['page'] ?? 'N/A';
|
||||||
$html = $row['html'];
|
$html = $row['html'];
|
||||||
|
|
||||||
$issues = analyzeMalformedLists($html, $malformed_patterns);
|
$issues = analyzeMalformedLists($html, $malformed_patterns);
|
||||||
|
|||||||
Reference in New Issue
Block a user