From 2755ae28f03f3dc3b41167993243ebdf7f1aa32e Mon Sep 17 00:00:00 2001 From: furkanyigit34 Date: Sat, 25 Apr 2026 14:10:34 +0300 Subject: [PATCH] =?UTF-8?q?chore:=20sat=C4=B1c=C4=B1/buybox/trendyol=5Fpro?= =?UTF-8?q?duct=20alanlar=C4=B1n=C4=B1=20kald=C4=B1r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ne yaptık: - data_consolidator.py'de "Satıcı bilgileri" bloğunu sildik - Return dict'ten seller_count, has_buybox, is_trendyol_product alanlarını çıkardık Neden yaptık: - merchantListings Trendyol'un public API'sinden gelmediği için seller_count her zaman 0, has_buybox her zaman false dönüyordu. - is_trendyol_product barcode-prefix tabanlıydı, güvenilirliği düşüktü. - SellerX (CiroNet) tarafında frontend bu sütunları zaten kaldırdı — scraper response'unda da gereksiz yer kaplamasın diye temizliyoruz. --- backend/data_consolidator.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/backend/data_consolidator.py b/backend/data_consolidator.py index 57d53c9..98669f2 100644 --- a/backend/data_consolidator.py +++ b/backend/data_consolidator.py @@ -248,11 +248,6 @@ def normalize_product(raw_product, category_name, social_details): ) break - # ── Satıcı bilgileri ── - seller_count = len(merchant_listings) - has_buybox = merchant_listings[0].get("isWinner", False) if merchant_listings else False - is_trendyol_product = barcode.startswith(("TYB", "SGT", "KPE", "RTN", "CDM")) if barcode else False - return { "id": product_id, "name": raw_product.get("name", ""), @@ -272,9 +267,6 @@ def normalize_product(raw_product, category_name, social_details): "image_url": image_url or "https://via.placeholder.com/150", "url": product_url, "in_stock": raw_product.get("inStock", False), - "seller_count": seller_count, - "has_buybox": has_buybox, - "is_trendyol_product": is_trendyol_product, }