mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-07-22 08:48:39 +00:00
Merge pull request #28 from Hestia-Homes/feature/sharepoint_integration
solar changes
This commit is contained in:
commit
80466a3ebb
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