Customer Rating and review changes

This commit is contained in:
sriram
2026-10-05 11:21:39 +05:30
parent c7e4d59188
commit abe7ad8450
15 changed files with 697 additions and 95 deletions

View File

@@ -34,6 +34,8 @@ class Listing:
pincode_applied: bool = False
rating: Optional[Decimal] = None
review_count: Optional[int] = None
# {"5": n, ..., "1": n} when the source publishes a star breakdown.
rating_breakdown: Optional[Dict[str, int]] = None
# Customer reviews the page itself publishes (schema.org Review); stored
# in elec.listing_review, not on the listing row.
reviews: List[Dict[str, Any]] = field(default_factory=list)