Start fixing forecast service API 4

This commit is contained in:
Urtzi Alfaro
2025-07-29 15:09:17 +02:00
parent 84ed4a7a2e
commit c8e0e1299e

View File

@@ -69,9 +69,9 @@ class ForecastingService:
# Create forecast record
forecast = Forecast(
tenant_id=uuid.UUID(tenant_id),
product_name=product_name,
forecast_date=datetime.combine(forecast_date, datetime.min.time()),
tenant_id=uuid.UUID(request.tenant_id),
product_name=request.product_name,
forecast_date=datetime.combine(request.forecast_date, datetime.min.time()),
# Prediction results
predicted_demand=prediction_result["demand"],