added price history to build_product_details/models

This commit is contained in:
TPV committed 2026-07-28 11:29:15 -07:00
1 parent 3573551957
commit 3f823b3a6e
2 files changed
+3

No files matched your search

+2
View File
@@ -54,12 +54,14 @@ class PricingInfo:
current_price: Current listed price.
price_before_drop: Stored price prior to the last detected drop.
edu_price: Education-store price when offered.
past_prices: Prior price history as price/date entries, oldest first.
"""
original_price: float
current_price: float
price_before_drop: float | None = None
edu_price: float | None = None
past_prices: list[dict] | None = None
@dataclass
+1
View File
@@ -204,6 +204,7 @@ def build_product_details(
original_price=original_price,
price_before_drop=product["priceBeforeDrop"],
edu_price=product["eduPrice"],
past_prices=product["pastPrices"],
),
availability=AvailabilityInfo(
available=product["available"],