From 093bb43e710a446e1320525dc9a20f6e2d9a937b Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Tue, 7 Apr 2026 18:46:26 -0400 Subject: [PATCH] Add force flag to roster sync DST guard --- src/roster_sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/roster_sync.py b/src/roster_sync.py index e704d71..f10327a 100644 --- a/src/roster_sync.py +++ b/src/roster_sync.py @@ -39,7 +39,8 @@ def handler(event, context): now = datetime.now(EASTERN) # DST guard — two EventBridge rules fire, only one is at 6am ET - if now.hour != 6: + force = event.get("force", False) + if not force and now.hour != 6: logger.info("ET hour is %d, not 6am — skipping (wrong DST rule fired)", now.hour) return {"skipped": True}