Skip to content

Commit

Permalink
wip: skid update
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobdadams committed May 21, 2024
1 parent 5575d99 commit 4b9d90b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wmrc/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@
# FEATURE_LAYER_ITEMID = '4df06137fb0a45459e49107a5f47a326' #: Beta version
FEATURE_LAYER_ITEMID = "056bbc52ff3240f6b69666750a61aeff" #: Live version
JOIN_COLUMN = "id_"

YEAR = "2022"
7 changes: 7 additions & 0 deletions src/wmrc/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@ def process():
gis = arcgis.gis.GIS(config.AGOL_ORG, secrets.AGOL_USER, secrets.AGOL_PASSWORD)

#: Do the work
module_logger.info("Loading records from Salesforce...")
records = _load_salesforce_data(secrets.SF_CLIENT_SECRET, secrets.SF_CLIENT_ID, secrets.SF_ORG)
county_summary_df = _county_summaries(records)
facility_summary_df = _facility_summaries(records)
materials_recycled_df = _materials_recycled(records)
materials_composted_df = _materials_composted(records)

module_logger.info("Loading data from Google Sheets...")
combined_df = _parse_from_google_sheets(secrets)
module_logger.info("Adding county names from SGID county boundaries...")
Expand Down

0 comments on commit 4b9d90b

Please sign in to comment.