From b6225dad20fbc81736c5d9b440e64f92808a6776 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Thu, 20 Mar 2025 15:38:25 +0000 Subject: [PATCH] solar changes --- etl/scis_invoice.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/etl/scis_invoice.py b/etl/scis_invoice.py index 64f433f..591f0e7 100644 --- a/etl/scis_invoice.py +++ b/etl/scis_invoice.py @@ -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)