Update utils/api_client.py
Browse files- utils/api_client.py +5 -1
utils/api_client.py
CHANGED
|
@@ -4,6 +4,10 @@ import httpx
|
|
| 4 |
from typing import Dict, Optional
|
| 5 |
from config import ORCHESTRATOR_URL
|
| 6 |
from typing import Any, Dict, List, Optional, Tuple
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
class RewardPilotClient:
|
| 9 |
"""Client for interacting with RewardPilot Orchestrator"""
|
|
@@ -159,7 +163,7 @@ class RewardPilotClient:
|
|
| 159 |
],
|
| 160 |
"total_monthly_spend": round(2205 * multiplier, 2),
|
| 161 |
"total_monthly_rewards": round(108.18 * multiplier, 2),
|
| 162 |
-
"average_rate": round(4.9
|
| 163 |
"top_categories": [
|
| 164 |
{"name": "✈️ Travel", "amount": round(850 * multiplier, 2), "change": "+45%"},
|
| 165 |
{"name": "🛒 Groceries", "amount": round(450 * multiplier, 2), "change": "+12%"},
|
|
|
|
| 4 |
from typing import Dict, Optional
|
| 5 |
from config import ORCHESTRATOR_URL
|
| 6 |
from typing import Any, Dict, List, Optional, Tuple
|
| 7 |
+
import logging
|
| 8 |
+
|
| 9 |
+
# Create logger
|
| 10 |
+
logger = logging.getLogger(__name__)
|
| 11 |
|
| 12 |
class RewardPilotClient:
|
| 13 |
"""Client for interacting with RewardPilot Orchestrator"""
|
|
|
|
| 163 |
],
|
| 164 |
"total_monthly_spend": round(2205 * multiplier, 2),
|
| 165 |
"total_monthly_rewards": round(108.18 * multiplier, 2),
|
| 166 |
+
"average_rate": round(4.9, 1),
|
| 167 |
"top_categories": [
|
| 168 |
{"name": "✈️ Travel", "amount": round(850 * multiplier, 2), "change": "+45%"},
|
| 169 |
{"name": "🛒 Groceries", "amount": round(450 * multiplier, 2), "change": "+12%"},
|