mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-07-27 23:35:02 +00:00
Merge pull request #19 from Hestia-Homes/feature/sharepoint_integration
Feature/sharepoint integration
This commit is contained in:
commit
1be827f9d0
3 changed files with 3 additions and 6 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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 = []
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue