mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-30 13:10:56 +00:00
added occupant information
This commit is contained in:
parent
5ff1d781e9
commit
a21d0f2a9e
3 changed files with 3 additions and 3 deletions
|
|
@ -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"))
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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+)")),
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue