From 093b93ec1c2d54809dd5d2f3161f31c088cd68dd Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Wed, 1 Apr 2026 09:58:23 +0000 Subject: [PATCH] forgot to add records for handler --- etl/hubspot/scripts/scraper/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etl/hubspot/scripts/scraper/main.py b/etl/hubspot/scripts/scraper/main.py index f5afef52..570461d7 100644 --- a/etl/hubspot/scripts/scraper/main.py +++ b/etl/hubspot/scripts/scraper/main.py @@ -13,12 +13,13 @@ from typing import Any # @subtask_handler() TODO: Do this without subtask_handler but task_handler() that creates task_id and subtask_id -def handler(body: dict[str, Any], context: Any, local: bool = False) -> None: +def handler(event: dict[str, Any], context: Any, local: bool = False) -> None: if local is True: body = { - "hubspot_deal_id": "254427203793", + "hubspot_deal_id": "409487859944", } + body = event["Records"][0]["body"] hubspot_deal_id = body.get("hubspot_deal_id", "") if hubspot_deal_id == "":