diff --git a/backend/app/db/functions/recommendations_functions.py b/backend/app/db/functions/recommendations_functions.py index 1d86a925..b9ec6fc3 100644 --- a/backend/app/db/functions/recommendations_functions.py +++ b/backend/app/db/functions/recommendations_functions.py @@ -91,6 +91,8 @@ def upload_recommendations(session, recommendations_to_upload, property_id): )] # Prepare data for bulk insert for RecommendationMaterials + # We can have multiple materials per recommendation. The aggregation of the materials will total the + # recommendation figures recommendation_materials_data = [ { "recommendation_id": recommendation_id,