mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
fixed the funding engine
This commit is contained in:
parent
97a6a27a15
commit
fb5960c4fe
1 changed files with 3 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ class EligibilityCaveats(Enum):
|
||||||
TENANT_ON_BENEFITS_OR_LOW_INCOME = "tenant_on_benefits_or_low_income"
|
TENANT_ON_BENEFITS_OR_LOW_INCOME = "tenant_on_benefits_or_low_income"
|
||||||
INNOVATION_REQUIRED = "innovation_required"
|
INNOVATION_REQUIRED = "innovation_required"
|
||||||
SOLAR_NEEDS_HEATING = "solar_needs_heating"
|
SOLAR_NEEDS_HEATING = "solar_needs_heating"
|
||||||
MINIMUM_INSULATION_PRECONDITIONS_NOT_MET = "minimum_insulation_preconditions_not_met"
|
MINIMUM_INSULATION_PRECONgiDITIONS_NOT_MET = "minimum_insulation_preconditions_not_met"
|
||||||
|
|
||||||
|
|
||||||
class Funding:
|
class Funding:
|
||||||
|
|
@ -39,6 +39,8 @@ class Funding:
|
||||||
partial_project_scores_matrix,
|
partial_project_scores_matrix,
|
||||||
whlg_eligible_postcodes
|
whlg_eligible_postcodes
|
||||||
):
|
):
|
||||||
|
if tenure not in [HousingType.PRIVATE, HousingType.SOCIAL]:
|
||||||
|
raise ValueError("Invalid tenure type. Must be 'Private' or 'Social'.")
|
||||||
self.tenure = tenure
|
self.tenure = tenure
|
||||||
self.eco4_social_cavity_abs_rate = eco4_social_cavity_abs_rate
|
self.eco4_social_cavity_abs_rate = eco4_social_cavity_abs_rate
|
||||||
self.eco4_social_solid_abs_rate = eco4_social_solid_abs_rate
|
self.eco4_social_solid_abs_rate = eco4_social_solid_abs_rate
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue