mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
allow for missing deal stage column when triggering sqs from file
This commit is contained in:
parent
fe482a9907
commit
62eea9f005
1 changed files with 4 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ def _build_requests(excel_path: str) -> list[PashubToAraTriggerRequest]:
|
||||||
pashub_col: int = headers["PasHub link"]
|
pashub_col: int = headers["PasHub link"]
|
||||||
record_id_col: int = headers["Record ID"]
|
record_id_col: int = headers["Record ID"]
|
||||||
deal_name_col: int = headers["Deal Name"]
|
deal_name_col: int = headers["Deal Name"]
|
||||||
deal_stage_col: int = headers["Deal Stage"]
|
deal_stage_col: Optional[int] = headers["Deal Stage"]
|
||||||
|
|
||||||
requests: list[PashubToAraTriggerRequest] = []
|
requests: list[PashubToAraTriggerRequest] = []
|
||||||
|
|
||||||
|
|
@ -77,7 +77,9 @@ def _build_requests(excel_path: str) -> list[PashubToAraTriggerRequest]:
|
||||||
|
|
||||||
record_id_raw = ws.cell(row=row, column=record_id_col).value
|
record_id_raw = ws.cell(row=row, column=record_id_col).value
|
||||||
deal_name_raw = ws.cell(row=row, column=deal_name_col).value
|
deal_name_raw = ws.cell(row=row, column=deal_name_col).value
|
||||||
deal_stage_raw = ws.cell(row=row, column=deal_stage_col).value
|
deal_stage_raw = (
|
||||||
|
ws.cell(row=row, column=deal_stage_col).value if deal_stage_col else None
|
||||||
|
)
|
||||||
|
|
||||||
hubspot_deal_id: Optional[str] = (
|
hubspot_deal_id: Optional[str] = (
|
||||||
str(record_id_raw) if record_id_raw is not None else None
|
str(record_id_raw) if record_id_raw is not None else None
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue