Compare commits

..
2 Commits
Author SHA1 Message Date
TPV a2821301e1 small cleanup 2026-07-15 21:13:42 -07:00
TPV b01e6a675b added edu_price into pricing_info so pricing would show up as edu under samsung channels 2026-07-15 21:13:29 -07:00
+3 -1
View File
@@ -133,6 +133,7 @@ async def process_page(
def extract_products(response: dict) -> list[Product]: def extract_products(response: dict) -> list[Product]:
products = [] products = []
for current_product in response["searchResults"]: for current_product in response["searchResults"]:
current_price = current_product["sale_price"]
product = Product( product = Product(
product_id=current_product["modelCode"], product_id=current_product["modelCode"],
title=current_product["name"], title=current_product["name"],
@@ -142,7 +143,8 @@ def extract_products(response: dict) -> list[Product]:
), ),
pricing=PricingInfo( pricing=PricingInfo(
original_price=current_product["msrp_price"], original_price=current_product["msrp_price"],
current_price=current_product["sale_price"], current_price=current_price,
edu_price=current_price,
), ),
availability=AvailabilityInfo( availability=AvailabilityInfo(
available=(current_product["stockFlag"] == "Y") available=(current_product["stockFlag"] == "Y")