added occupant information

This commit is contained in:
Jun-te Kim 2025-08-26 10:32:13 +00:00
parent 5ff1d781e9
commit a21d0f2a9e
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

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