added edu_price into pricing_info so pricing would show up as edu under samsung channels
This commit is contained in:
1 parent
586d4a4bec
commit
b01e6a675b
2 files changed
+14
-1
No files matched your search
+11
@@ -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
|
||||
@@ -133,6 +133,7 @@ async def process_page(
|
||||
def extract_products(response: dict) -> list[Product]:
|
||||
products = []
|
||||
for current_product in response["searchResults"]:
|
||||
current_price = current_product["sale_price"]
|
||||
product = Product(
|
||||
product_id=current_product["modelCode"],
|
||||
title=current_product["name"],
|
||||
@@ -142,7 +143,8 @@ def extract_products(response: dict) -> list[Product]:
|
||||
),
|
||||
pricing=PricingInfo(
|
||||
original_price=current_product["msrp_price"],
|
||||
current_price=current_product["sale_price"],
|
||||
current_price=current_price,
|
||||
edu_price=current_price,
|
||||
),
|
||||
availability=AvailabilityInfo(
|
||||
available=(current_product["stockFlag"] == "Y")
|
||||
|
||||
Reference in new issue
Block a user