mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-30 13:10:56 +00:00
14 lines
No EOL
609 B
Python
14 lines
No EOL
609 B
Python
from pprint import pprint
|
|
from etl.db.db import get_db_session, init_db
|
|
|
|
from etl.surveyedData.surveryedData import surveyedDataProcessor
|
|
condition_report_file_path = "/workspaces/survey-extractor/etl/files/osmosis_condition_report.pdf"
|
|
sdp = surveyedDataProcessor("123 Fake Street", [condition_report_file_path])
|
|
pprint(sdp.condition_report.master_obj)
|
|
|
|
init_db()
|
|
with get_db_session() as db_session:
|
|
sdp.load_condition_report(db_session)
|
|
|
|
# TODO: add the ability to add document type, and sharepoint or s3 link so we can process access it again
|
|
# Terraform lambda set up to start this job from a s3 link |