mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-27 23:35:01 +00:00
One-time ingest of Wythenshawe Community Housing Group Elmhurst *Summary* PDFs: resolve each property's SharePoint folder from the WCHG xlsx, download the summary, run the existing extractor -> mapper -> SAP10 pipeline, and (with --commit) push the PDF to S3, record an uploaded_files row, and save the EpcPropertyData to epc_property keyed on the national UPRN (property_id NULL, replace-by-(uprn,source)). Dry-run by default; also emits a SAP-accuracy CSV vs Elmhurst's reported current SAP (% within 0.5 + MAE). Adds DomnaSites.SOCIAL_HOUSING (SOCIAL_HOUSING_SHAREPOINT_ID) for the site. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
13 lines
504 B
Python
13 lines
504 B
Python
from enum import Enum
|
|
import os
|
|
|
|
|
|
class DomnaSites(Enum):
|
|
# https//{tenant}.sharepoint.com/sites/{site}/_api/site/id
|
|
# TODO: Add these to github secrets!!!
|
|
DOMNA = os.getenv("DOMNA_SHAREPOINT_ID")
|
|
OSMOSIS_ACD = os.getenv("OSMOSIS_ACD_SHAREPOINT_ID")
|
|
PRIVATE_PAY = os.getenv("PRIVATE_PAY_SHAREPOINT_ID")
|
|
SOCIAL_HOUSING_WAVE_3 = os.getenv("SOCIAL_HOUSING_WAVE_3_SHAREPOINT_ID")
|
|
SOCIAL_HOUSING = os.getenv("SOCIAL_HOUSING_SHAREPOINT_ID")
|
|
ECO = os.getenv("ECO_SHAREPOINT_ID")
|