From 2331105f965b7d739bb74fe98266ad442d7cedf5 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Tue, 26 Aug 2025 19:50:42 +0000 Subject: [PATCH] added severity --- deployment/lambda/extractor_and_loader/docker/app.py | 4 ++-- etl/fileReader/sitenotes.py | 3 ++- etl/transform/conditionReportTypes.py | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/deployment/lambda/extractor_and_loader/docker/app.py b/deployment/lambda/extractor_and_loader/docker/app.py index 4bf5d93..1502ef5 100644 --- a/deployment/lambda/extractor_and_loader/docker/app.py +++ b/deployment/lambda/extractor_and_loader/docker/app.py @@ -204,11 +204,11 @@ def handler(event, context): local_path = download_private_s3_file(file_uri) # Local development of file, please comment out for prod - # local_path = os.path.join(os.path.join(os.getcwd(), "../../../../../", "home/Downloads/works/67-Aylestone-Road-1.pdf")) + # local_path = os.path.join(os.path.join(os.getcwd(), "../../../../../", "home/Downloads/works/67-Aylestone-Road-1 1.pdf")) # local_path = os.path.join(os.path.join(os.getcwd(), "../../../../../", "home/Downloads/works/2-Wilford-Crescent-West.pdf")) # local_path = os.path.join(os.path.join(os.getcwd(), "../../../../../", "home/Downloads/works/3-Carlinghow-court.pdf")) # local_path = os.path.join(os.path.join(os.getcwd(), "../../../../../", "home/Downloads/works/26-Marden-Road.pdf")) - # local_path = os.path.join(os.path.join(os.getcwd(), "../../../../../", "home/Downloads/works/67-Aylestone-Road-1.pdf")) + # local_path = os.path.join(os.path.join(os.getcwd(), "../../../../../", "home/Downloads/works/6E-plantagenet-street.pdf")) diff --git a/etl/fileReader/sitenotes.py b/etl/fileReader/sitenotes.py index fbb267e..8f087e2 100644 --- a/etl/fileReader/sitenotes.py +++ b/etl/fileReader/sitenotes.py @@ -361,7 +361,8 @@ class WarmHomesConditionReport(SiteNotesExtractor): are_there_any_visible_or_reported_signs_of_damp_mould_or_excessive_condensation_within_the_room=True if self.get_next_value(data, "excessive condensation within the room?").lower() == "yes" else False, are_there_sufficient_undercuts_on_the_closed_door=self.get_next_value(data, "- min 10mm)?"), is_there_any_open_flue_heating_appliances_within_the_room=True if self.get_next_value(data, "Is there any open flue heating appliances within the room?").lower() == "yes" else False, - location_of_any_damp_or_mould=self.get_next_value(data, "Location of any damp/mould") + location_of_any_damp_or_mould=self.get_next_value(data, "Location of any damp/mould"), + what_severity_of_damp_mould_would_you_consider_this_to_be=self.get_next_value(data, "What severity of damp/mould would you consider this to be?"), ) diff --git a/etl/transform/conditionReportTypes.py b/etl/transform/conditionReportTypes.py index ee51b7c..7bfdebf 100644 --- a/etl/transform/conditionReportTypes.py +++ b/etl/transform/conditionReportTypes.py @@ -94,6 +94,7 @@ class VentilationInfo(BaseModel): are_there_sufficient_undercuts_on_the_closed_door: str is_there_any_open_flue_heating_appliances_within_the_room: bool location_of_any_damp_or_mould: Optional[str] = "" + what_severity_of_damp_mould_would_you_consider_this_to_be: Optional[str] = "" class WindowsInfo(BaseModel): does_the_room_have_any_windows: bool