mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-30 13:10:56 +00:00
added new script for hubspot verification
This commit is contained in:
parent
ebb2443a5c
commit
4d455cdda3
1 changed files with 18 additions and 0 deletions
18
etl/hubspot_verification_to_db_load.py
Normal file
18
etl/hubspot_verification_to_db_load.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import os
|
||||
import pprint
|
||||
from etl.hubSpotClient.hubspot import DealStage
|
||||
|
||||
# Local development, comment this out to be production
|
||||
os.environ["DATABASE_URL"] = "postgresql://postgres:makingwarmhomes@db:5432/postgres"
|
||||
|
||||
from etl.db.hubSpotLoad import HubspotTodb
|
||||
|
||||
|
||||
hubspotClient = HubspotTodb()
|
||||
deals = hubspotClient.get_deals_from_deal_stage(DealStage.SURVEYED_COMPLETE_NEEDS_SIGN_OFF)
|
||||
pprint(deals)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Reference in a new issue