Merge pull request #28 from Hestia-Homes/feature/sharepoint_integration

solar changes
This commit is contained in:
Jun-te Kim 2025-03-20 15:38:59 +00:00 committed by GitHub
commit 80466a3ebb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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