mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Added default age band for new builds
This commit is contained in:
parent
beb45d451d
commit
be9a960186
1 changed files with 4 additions and 0 deletions
|
|
@ -350,6 +350,10 @@ class Property(Definitions):
|
|||
|
||||
self.age_band = england_wales_age_band_lookup.get(self.construction_age_band)
|
||||
|
||||
if (self.data["transaction-type"] == "new dwelling") and (self.age_band is None):
|
||||
self.age_band = "L"
|
||||
self.construction_age_band = 'England and Wales: 2012 onwards'
|
||||
|
||||
if self.age_band is None:
|
||||
raise ValueError("age_band is missing")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue