From a21d0f2a9e194ce7a9da6482881c529320e770d6 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Tue, 26 Aug 2025 10:32:13 +0000 Subject: [PATCH] added occupant information --- deployment/lambda/extractor_and_loader/docker/app.py | 2 +- etl/fileReader/sitenotes.py | 2 +- etl/transform/conditionReportTypes.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deployment/lambda/extractor_and_loader/docker/app.py b/deployment/lambda/extractor_and_loader/docker/app.py index 9da6715..2da0228 100644 --- a/deployment/lambda/extractor_and_loader/docker/app.py +++ b/deployment/lambda/extractor_and_loader/docker/app.py @@ -200,7 +200,7 @@ def handler(event, context): print("Downloading file locally for extraction...") local_path = download_private_s3_file(file_uri) - # local_path = os.path.join(os.path.join(os.getcwd(), "../..", "home/Downloads/67-Aylestone-Road-1.pdf")) + local_path = os.path.join(os.path.join(os.getcwd(), "../..", "home/Downloads/67-Aylestone-Road-1.pdf")) diff --git a/etl/fileReader/sitenotes.py b/etl/fileReader/sitenotes.py index 0901ed1..736dec4 100644 --- a/etl/fileReader/sitenotes.py +++ b/etl/fileReader/sitenotes.py @@ -637,7 +637,7 @@ class WarmHomesConditionReport(SiteNotesExtractor): print(self.get_next_value(data, "No. of Child Occupants (Under 18)")) return Occupant( - name=self.get_next_value(second_data, "Name of the occupant:"), + # name=self.get_next_value(second_data, "Name of the occupant:"), have_evidence_of_12_months_of_fuel_bill_data= True if self.get_next_value(second_data, "Have you evidenced 12 months of fuel bill data?").lower() == "yes" else False, total_number_of_occupants=int(self.get_next_value(data, "Total number of occupants:")), no_of_adult_occupants=int(self.get_next_value(data, "No. of Adult Occupants (18+)")), diff --git a/etl/transform/conditionReportTypes.py b/etl/transform/conditionReportTypes.py index abd53f8..fe0d816 100644 --- a/etl/transform/conditionReportTypes.py +++ b/etl/transform/conditionReportTypes.py @@ -218,7 +218,7 @@ class HeatingSystem(BaseModel): class Occupant(BaseModel): - name: str + # name: str have_evidence_of_12_months_of_fuel_bill_data: bool total_number_of_occupants: int no_of_adult_occupants: int