mirror of
https://github.com/Sea-Haven-Industries/afterhours-shift-manager.git
synced 2026-09-30 10:13:11 +00:00
Add force flag to weekly post handler for manual testing
This commit is contained in:
parent
b0aec78b8f
commit
f8ceb1dc83
1 changed files with 2 additions and 1 deletions
|
|
@ -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}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue