cleansing and fix typo
This commit is contained in:
parent
962275cc46
commit
ba40acf2c2
@ -18,7 +18,7 @@ def _check_needed_features(
|
||||
|
||||
if missing_features:
|
||||
raise FeaturesMissingError(
|
||||
f"The datset does not contain all needed features: "
|
||||
f"The dataset does not contain all needed features: "
|
||||
f"Missing features are: {missing_features}"
|
||||
)
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ from datetime import datetime as Datetime
|
||||
|
||||
from delta_barth.analysis import forecast
|
||||
from delta_barth.management import SESSION
|
||||
from delta_barth.types import JsonExportResponse, JsonResponse, JsonStatus
|
||||
from delta_barth.types import JsonExportResponse
|
||||
|
||||
|
||||
def pipeline_sales_forecast(
|
||||
@ -13,8 +13,6 @@ def pipeline_sales_forecast(
|
||||
) -> JsonExportResponse:
|
||||
result = forecast.pipeline_sales(SESSION, company_id=company_id, start_date=start_date)
|
||||
export = JsonExportResponse(result.model_dump_json())
|
||||
# response = JsonResponse(result.response.model_dump_json())
|
||||
# status = JsonStatus(result.status.model_dump_json())
|
||||
|
||||
return export
|
||||
|
||||
@ -29,7 +27,5 @@ def pipeline_sales_forecast_dummy(
|
||||
start_date=start_date,
|
||||
)
|
||||
export = JsonExportResponse(result.model_dump_json())
|
||||
# response = JsonResponse(result.response.model_dump_json())
|
||||
# status = JsonStatus(result.status.model_dump_json())
|
||||
|
||||
return export
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user