Files
patrickandClaude Sonnet 5.5 9c4f7366eb
test / pytest (3.11) (push) Canceled after 0s
test / pytest (3.13) (push) Canceled after 0s
feat: Phase 6 prompt versioning with test area, retention
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 02:17:01 +01:00

10 lines
284 B
Python

from datetime import datetime
RUN_HOUR = 3
def should_run(now: datetime, last_run_ts: float | None, startup: bool) -> bool:
if last_run_ts is not None and datetime.fromtimestamp(last_run_ts).date() == now.date():
return False
return startup or now.hour >= RUN_HOUR