Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2821301e1 | ||
|
|
b01e6a675b |
@@ -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