diff --git a/app.py b/app.py index 66fa92cf33387493bf59739728725fbd1d35e6f9..c2dd044ddcc85b677c218f8c92f24fd7c2d2ad6a 100644 --- a/app.py +++ b/app.py @@ -13,8 +13,8 @@ def build_revenue_report( email: str, tool: CustomerTool, ) -> str: - customer = tool.lookup_customer(email=email) - amount = float(customer["lifetime_value_dollars"]) + customer = tool.lookup_customer(customer_id=customer_id) + amount = int(customer["lifetime_value_cents"]) / 100 return f"Customer {customer_id} lifetime value: ${amount:,.2f}"