Checking onboardin flow - fix 2
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user