Improve training code 2
This commit is contained in:
@@ -59,10 +59,10 @@ async def start_training_job(
|
||||
# Delegate to training service (Step 1 of the flow)
|
||||
result = await training_service.start_training_job(
|
||||
tenant_id=tenant_id,
|
||||
bakery_location=request.bakery_location or (40.4168, -3.7038), # Default Madrid
|
||||
bakery_location=(40.4168, -3.7038), # Default Madrid coordinates
|
||||
requested_start=request.start_date if request.start_date else None,
|
||||
requested_end=request.end_date if request.end_date else None,
|
||||
job_id=request.job_id
|
||||
job_id=None # Let the service generate it
|
||||
)
|
||||
|
||||
return TrainingJobResponse(**result)
|
||||
|
||||
Reference in New Issue
Block a user