diff --git a/customer_insights.py b/customer_insights.py index 2efc58cedc2a8e1ef4f70e113cc4b463ac6c463c..54bbc00b5cc887120188581992d6c5e166ceaefc 100644 --- a/customer_insights.py +++ b/customer_insights.py @@ -13,8 +13,8 @@ def customer_insights( 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} has lifetime value ${amount:,.2f}"