diff --git a/backend/app/db/functions/recommendations_functions.py b/backend/app/db/functions/recommendations_functions.py index ed3fb435..72affd2a 100644 --- a/backend/app/db/functions/recommendations_functions.py +++ b/backend/app/db/functions/recommendations_functions.py @@ -261,6 +261,7 @@ def upload_recommendations( recommendations_data = [ { "property_id": property_id, + "plan_id": new_plan_id, "type": rec["type"], "measure_type": rec["measure_type"], "description": rec["description"], @@ -353,6 +354,7 @@ def bulk_upload_recommendations_and_materials( recommendation_rows.append( { "property_id": rec["property_id"], + "plan_id": rec["plan_id"], "type": rec["type"], "measure_type": rec["measure_type"], "description": rec["description"],