diff --git a/backend/src/tools/koepi/routes.js b/backend/src/tools/koepi/routes.js index 3cd0748..2f3cb91 100644 --- a/backend/src/tools/koepi/routes.js +++ b/backend/src/tools/koepi/routes.js @@ -107,6 +107,7 @@ async function scrapeMarktguru() { // Lokale Bilder auswählen basierend auf Beschreibung for (const offer of offers) { const desc = (offer.description || '').toLowerCase(); + console.log('DESC:', JSON.stringify(desc), '| RETAILER:', offer.retailer); if (desc.includes('steini')) { offer.imageLocal = '/koepi/kasten_steini.png'; } else if (desc.includes('24 x 0,33') || desc.includes('24x0,33') || (desc.includes('24') && desc.includes('0,33'))) { @@ -123,6 +124,7 @@ async function scrapeMarktguru() { offer.imageLocal = '/koepi/kasten_050.png'; } offer.image = null; // CDN nicht mehr nötig + console.log('IMAGE:', offer.imageLocal, '| RETAILER:', offer.retailer); } // Filtern auf Ziel-Händler + nur König Pilsener