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

@@ -92,8 +92,9 @@ async def get_product(product_id: int) -> Dict[str, Any]:
"""Full details of one product by its product_id (from search_products).
Returns per-platform offers (price, MRP, source URL, when seen), normalised specs,
image URLs, the overall rating with per-platform sources (null if none is published),
and up to 10 real customer reviews (often empty).
image URLs, the overall rating with per-platform sources and, when a platform publishes
one, a 5-to-1 star breakdown (rating is null if no platform publishes a rating), and up
to 10 real customer reviews with the site each came from (often empty).
"""
d = await _run(elec.product, int(product_id))
return {