Added default age band for new builds

This commit is contained in:
Khalim Conn-Kowlessar 2023-11-17 17:03:14 +00:00
parent beb45d451d
commit be9a960186

View file

@ -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")