From b3f9929554aca2740c07e6860a1f6de6086e73ef Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Tue, 15 Jul 2025 15:21:31 +0000 Subject: [PATCH] modified script to re run existing scripts --- etl/hubspot_surveyed_needs_sign_off.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/etl/hubspot_surveyed_needs_sign_off.py b/etl/hubspot_surveyed_needs_sign_off.py index a8eeabc..7794d07 100644 --- a/etl/hubspot_surveyed_needs_sign_off.py +++ b/etl/hubspot_surveyed_needs_sign_off.py @@ -16,10 +16,17 @@ from etl.hubSpotClient.hubspot import DealStage, HubSpotClient os.environ["DATABASE_URL"] = "postgresql://postgres:makingwarmhomes@db:5432/postgres" hubspotClient = HubSpotClient() -deals = hubspotClient.get_deals_from_deal_stage(DealStage.SURVEYED_COMPLETE_NEEDS_SIGN_OFF) + +# files missing from assessor column +deals = hubspotClient.get_deals_from_deal_stage(DealStage.NEEDS_ADDITIONAL_INFORMATION_FROM_ASSESSOR) for deal in deals: hubspotClient.move_deals_to_different_stage([deal.deal_id], DealStage.SURVEYED_COMPLETED_SIGNED_OFF.value) -# TODO load when we are at 'ready to co-ordination' - script! \ No newline at end of file +# Survyed_complete +deals = hubspotClient.get_deals_from_deal_stage(DealStage.SURVEYED_COMPLETE_NEEDS_SIGN_OFF) + + +for deal in deals: + hubspotClient.move_deals_to_different_stage([deal.deal_id], DealStage.SURVEYED_COMPLETED_SIGNED_OFF.value)