From f8ceb1dc83c689f192ce7069f646aa86b6e610f9 Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Tue, 7 Apr 2026 18:58:03 -0400 Subject: [PATCH] Add force flag to weekly post handler for manual testing --- src/weekly_post.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/weekly_post.py b/src/weekly_post.py index 41c79e7..db74056 100644 --- a/src/weekly_post.py +++ b/src/weekly_post.py @@ -138,7 +138,8 @@ def handler(event, context): now = datetime.now(EASTERN) # DST guard — same pattern as the 3CX scheduler - if now.hour != 7: + force = event.get("force", False) + if not force and now.hour != 7: logger.info("ET hour is %d, not 7am — skipping (wrong DST rule fired)", now.hour) return {"skipped": True}