From 5a97b05c47efa310aec5bea448575c216468a15c Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Wed, 19 Mar 2025 14:37:49 +0000 Subject: [PATCH] latest and greatest dates --- etl/pdfReader/sitenotes.py | 4 ++-- etl/scis_invoice.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etl/pdfReader/sitenotes.py b/etl/pdfReader/sitenotes.py index bbfcfb2..72200e3 100644 --- a/etl/pdfReader/sitenotes.py +++ b/etl/pdfReader/sitenotes.py @@ -713,7 +713,7 @@ class QuidosSiteNotesExtractor(SiteNotesExtractor): control_type=dict_.get("control_type", ""), flue_type=dict_.get("flue_type",""), fan_assisted_flue=True if dict_.get("fan_assisted_flue", "NO").upper() == "YES" else False, - heat_emitter_type=dict_.get("heat_emitter_type", ""), + heat_emitter_type=dict_.get("heat_emitter_type", "") if dict_.get("heat_emitter_type") is not None else "", electricity_meter_type=dict_.get("electricity_meter_type", ""), mains_gas_available=True if dict_.get("mains_gas_available", "NO").upper() == "YES" else False, ) @@ -754,7 +754,7 @@ class QuidosSiteNotesExtractor(SiteNotesExtractor): control_type=dict_.get("control_type", ""), flue_type=dict_.get("flue_type",""), fan_assisted_flue=True if dict_.get("fan_assisted_flue", "NO").upper() == "YES" else False, - heat_emitter_type=dict_.get("heat_emitter_type", ""), + heat_emitter_type=dict_.get("heat_emitter_type", "") if dict_.get("heat_emitter_type") is not None else "", electricity_meter_type=dict_.get("electricity_meter_type", ""), mains_gas_available=True if dict_.get("mains_gas_available", "NO").upper() == "YES" else False, ) diff --git a/etl/scis_invoice.py b/etl/scis_invoice.py index 1b77b2e..13c0b7d 100644 --- a/etl/scis_invoice.py +++ b/etl/scis_invoice.py @@ -15,7 +15,7 @@ def main(): "Price": [] } - south_coast_scraper = SharePointScraper(SharePointInstaller.SOUTH_COAST_INSULATION, development=True) + south_coast_scraper = SharePointScraper(SharePointInstaller.SOUTH_COAST_INSULATION) file_paths = south_coast_scraper.download_file_for_each_address() list_of_surveys = []