Checking onboardin flow - fix 2

This commit is contained in:
Urtzi Alfaro
2025-07-27 10:30:42 +02:00
parent cb3ae4d78b
commit 30ac945058
3 changed files with 78 additions and 18 deletions

View File

@@ -425,7 +425,7 @@ class TrainingService:
params["limit"] = limit
response = await client.get(
f"{settings.DATA_SERVICE_URL}/api/v1/sales/",
f"{settings.DATA_SERVICE_URL}/api/v1/tenants/{tenant_id}/sales/",
params=params,
headers=headers,
timeout=30.0
@@ -479,7 +479,7 @@ class TrainingService:
"""Fetch weather data from data service"""
try:
async with httpx.AsyncClient() as client:
params = {"tenant_id": tenant_id}
params = { }
if hasattr(request, 'start_date') and request.start_date:
params["start_date"] = request.start_date.isoformat()
@@ -507,7 +507,7 @@ class TrainingService:
"""Fetch traffic data from data service"""
try:
async with httpx.AsyncClient() as client:
params = {"tenant_id": tenant_id}
params = { }
if hasattr(request, 'start_date') and request.start_date:
params["start_date"] = request.start_date.isoformat()