diff --git a/backend/app/db/models/recommendations.py b/backend/app/db/models/recommendations.py index 1089dced..54a876d7 100644 --- a/backend/app/db/models/recommendations.py +++ b/backend/app/db/models/recommendations.py @@ -80,6 +80,7 @@ class Scenario(Base): portfolio_id = Column(BigInteger, ForeignKey(Portfolio.id), nullable=False) housing_type = Column(String, nullable=False) goal = Column(String, nullable=False) + goal_value = Column(String, nullable=False) trigger_file_path = Column(String, nullable=False) already_installed_file_path = Column(String) patches_file_path = Column(String) diff --git a/backend/engine/engine.py b/backend/engine/engine.py index 98862107..318f4a0e 100644 --- a/backend/engine/engine.py +++ b/backend/engine/engine.py @@ -230,7 +230,6 @@ def extract_portfolio_aggregation_data( "cost_per_co2_saved": cost_per_co2_saved, "cost_per_sap_point": cost_per_sap_point, "valuation_return_on_investment": valuation_return_on_investment, - # TODO: Could we add 10yr carbon credits value? } return aggregation_data @@ -945,6 +944,7 @@ async def model_engine(body: PlanTriggerRequest): "portfolio_id": body.portfolio_id, "housing_type": body.housing_type, "goal": body.goal, + "goal_value": body.goal_value, "trigger_file_path": body.trigger_file_path, "already_installed_file_path": body.already_installed_file_path, "patches_file_path": body.patches_file_path,