handling further edge case of semi-detached maisoneete

This commit is contained in:
Khalim Conn-Kowlessar 2024-01-03 11:02:15 +00:00
parent 0ec7afccd9
commit aca882f10c

View file

@ -474,7 +474,9 @@ class SearchEpc:
# We handle some edge cases experiences with maisonettes - if built form is detatched, just filter
# on maisonette
if (estimation_property_type == "Maisonette") & (estimation_built_form == "Detached"):
if (estimation_property_type == "Maisonette") & (
estimation_built_form in ["Detached", "Semi-Detached"]
):
epc_data = epc_data[epc_data["property-type"] == estimation_property_type]
else:
epc_data = epc_data[