diff --git a/app.py b/app.py index e69d5940d2c5e0762b63414c9e64e527d0d7784f..083b7e602e74a7d7962c2994e2eaacdb3fe9a71d 100644 --- a/app.py +++ b/app.py @@ -13,8 +13,8 @@ def build_fraud_context( 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"Fraud review for {customer_id}; customer value ${amount:,.2f}"