mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-08 11:17:29 +00:00
solar changes
This commit is contained in:
parent
4234287672
commit
b6225dad20
1 changed files with 10 additions and 6 deletions
|
|
@ -20,18 +20,22 @@ def main():
|
|||
list_of_surveys = []
|
||||
for eachAddress in file_paths:
|
||||
for address, files in eachAddress.items():
|
||||
print(address, files)
|
||||
list_of_surveys.append(surveyedDataProcessor(address, files))
|
||||
|
||||
|
||||
for survey in list_of_surveys:
|
||||
if survey.pre_site_note:
|
||||
if survey.csr:
|
||||
data["Price"].append(500)
|
||||
data["Type of Work"].append("REMIDIAL CWI ONLY")
|
||||
if survey.pre_site_note.property_description.main_property.wall.insulation.lower() == 'as built':
|
||||
if survey.csr:
|
||||
data["Price"].append(500)
|
||||
data["Type of Work"].append("REMIDIAL CWI ONLY")
|
||||
else:
|
||||
data["Price"].append(1000)
|
||||
data["Type of Work"].append("CAVITY ONLY")
|
||||
else:
|
||||
data["Price"].append(1000)
|
||||
data["Type of Work"].append("CAVITY ONLY")
|
||||
# Solar
|
||||
data["Price"].append(1608)
|
||||
data["Type of Work"].append("SOLAR")
|
||||
|
||||
data["Address"].append(survey.address)
|
||||
data["Surveyor's Name"].append(survey.pre_site_note.assessor_information.name)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue