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

Feature/sharepoint integration
This commit is contained in:
Jun-te Kim 2025-03-19 14:38:33 +00:00 committed by GitHub
commit 1be827f9d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 6 deletions

View file

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

View file

@ -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 = []

View file

@ -13,9 +13,6 @@ class surveyedDataProcessor():
def identify_files(self):
for file in self.files:
pdf = pdfReaderToText(file)
print("Junte was here")
print(file)
print(pdf.text_list)
if pdf:
if pdf.type == ReportType.QUIDOS_PRESITE_NOTE:
self.pre_site_note = pdf.get_reader()