Merge pull request #230 from Hestia-Homes/main

fixing api call to sap model
This commit is contained in:
KhalimCK 2023-09-13 10:55:45 +01:00 committed by GitHub
commit 355944c5bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -395,7 +395,7 @@ async def trigger_plan(body: PlanTriggerRequest):
logger.info("Making request to sap change api")
sap_change_model_api = SAPChangeModelAPI()
response = sap_change_model_api.predict(
file_location="s3://{DATA_BUCKET}".format(DATA_BUCKET=get_settings().DATA_BUCKET) + file_location,
file_location="s3://{DATA_BUCKET}/".format(DATA_BUCKET=get_settings().DATA_BUCKET) + file_location,
created_at=created_at,
portfolio_id=body.portfolio_id
)