added edu_price into pricing_info so pricing would show up as edu under samsung channels

This commit is contained in:
TPV committed 2026-07-15 21:13:29 -07:00
1 parent 586d4a4bec
commit b01e6a675b
2 files changed
+14 -1

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
v3ispunlimited.hellworld.io:30:26033123vukg4js-country-US-time-30-session-wayekwk9:6pbhpgi7eoeg
v3ispunlimited.hellworld.io:30:26033123vukg4js-country-US-time-30-session-81fnraj7:6pbhpgi7eoeg
v3ispunlimited.hellworld.io:30:26033123vukg4js-country-US-time-30-session-tp9v8r3c:6pbhpgi7eoeg
v3ispunlimited.hellworld.io:30:26033123vukg4js-country-US-time-30-session-13jbes1u:6pbhpgi7eoeg
v3ispunlimited.hellworld.io:30:26033123vukg4js-country-US-time-30-session-dh2w4oce:6pbhpgi7eoeg
v3ispunlimited.hellworld.io:30:26033123vukg4js-country-US-time-30-session-4dbijnps:6pbhpgi7eoeg
v3ispunlimited.hellworld.io:30:26033123vukg4js-country-US-time-30-session-ll4sdjxd:6pbhpgi7eoeg
v3ispunlimited.hellworld.io:30:26033123vukg4js-country-US-time-30-session-h9ilno2y:6pbhpgi7eoeg
v3ispunlimited.hellworld.io:30:26033123vukg4js-country-US-time-30-session-0513pzra:6pbhpgi7eoeg
v3ispunlimited.hellworld.io:30:26033123vukg4js-country-US-time-30-session-n0vzkol3:6pbhpgi7eoeg
v3ispunlimited.hellworld.io:30:26033123vukg4js-country-US-time-30-session-m2ahxif4:6pbhpgi7eoeg
+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")