mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
fixed bug in lighting outlets cleaning
This commit is contained in:
parent
dbe13586da
commit
86dd6efdc3
2 changed files with 13 additions and 9 deletions
|
|
@ -66,14 +66,18 @@ async def trigger_plan(body: PlanTriggerRequest):
|
|||
)
|
||||
|
||||
# For testing:
|
||||
# plan_input.extend(
|
||||
# [
|
||||
# {'address': '73 Long Chaulden', 'postcode': 'HP1 2HX', 'Notes': ''},
|
||||
# {'address': '8 Lindlings', 'postcode': 'HP1 2HA', 'Notes': ''},
|
||||
# {'address': '44 Lindlings', 'postcode': 'HP1 2HE', 'Notes': ''},
|
||||
# {'address': '46 Chaulden Terrace', 'postcode': 'HP1 2AN', 'Notes': ''},
|
||||
# ]
|
||||
# )
|
||||
plan_input.extend(
|
||||
[
|
||||
{'address': '73 Long Chaulden', 'postcode': 'HP1 2HX', 'Notes': ''},
|
||||
{'address': '8 Lindlings', 'postcode': 'HP1 2HA', 'Notes': ''},
|
||||
{'address': '44 Lindlings', 'postcode': 'HP1 2HE', 'Notes': ''},
|
||||
{'address': '46 Chaulden Terrace', 'postcode': 'HP1 2AN', 'Notes': ''},
|
||||
{'address': '4, Heather Shaw', 'postcode': 'BA14 7JS', 'Notes': ''},
|
||||
{'address': '16 Glastonbury Road', 'postcode': 'M32 9PE', 'Notes': ''},
|
||||
{'address': '31 Loddon Way', 'postcode': 'BA15 1HG', 'Notes': ''},
|
||||
{'address': '62 Pearmain Drive', 'postcode': 'NG3 3DJ', 'Notes': ''},
|
||||
]
|
||||
)
|
||||
|
||||
input_properties = []
|
||||
for config in plan_input:
|
||||
|
|
|
|||
|
|
@ -389,7 +389,7 @@ class EPCRecord:
|
|||
|
||||
cleaned_property_data = EPCDataProcessor.apply_averages_cleaning(
|
||||
data_to_clean=self.epc_record_as_dataframe("prepared_epc", replace_empty_string=True),
|
||||
cleaning_data=self.cleaning_data,
|
||||
cleaning_data=cleaning_data,
|
||||
cols_to_merge_on=['PROPERTY_TYPE', 'BUILT_FORM', 'CONSTRUCTION_AGE_BAND', 'LOCAL_AUTHORITY'],
|
||||
)
|
||||
self.prepared_epc["fixed-lighting-outlets-count"] = round(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue