mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
adding goal value to scenario creation
This commit is contained in:
parent
c6217ed1fb
commit
92a4d11247
2 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue