From 1de8c3718658cf9074aa391c1bc5c522e7296f35 Mon Sep 17 00:00:00 2001 From: Dicken Date: Thu, 9 Jul 2026 16:15:52 +0200 Subject: [PATCH] =?UTF-8?q?debug:=20K=C3=B6Pi=20-=20Beschreibungen=20logge?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/src/tools/koepi/routes.js | 2 ++ 1 file changed, 2 insertions(+) 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