Start fixing forecast service API 4
This commit is contained in:
@@ -69,9 +69,9 @@ class ForecastingService:
|
|||||||
|
|
||||||
# Create forecast record
|
# Create forecast record
|
||||||
forecast = Forecast(
|
forecast = Forecast(
|
||||||
tenant_id=uuid.UUID(tenant_id),
|
tenant_id=uuid.UUID(request.tenant_id),
|
||||||
product_name=product_name,
|
product_name=request.product_name,
|
||||||
forecast_date=datetime.combine(forecast_date, datetime.min.time()),
|
forecast_date=datetime.combine(request.forecast_date, datetime.min.time()),
|
||||||
|
|
||||||
# Prediction results
|
# Prediction results
|
||||||
predicted_demand=prediction_result["demand"],
|
predicted_demand=prediction_result["demand"],
|
||||||
|
|||||||
Reference in New Issue
Block a user