mirror of
https://github.com/kuhyx/signal-bot.git
synced 2026-11-11 14:17:31 +01:00
The scheduler fired exactly on time tonight and posted nothing, because publish_report covered the previous full day and the bot's first recorded day was today: "no messages in group.WTI5dVptbG... on 2026-08-29". Correct by code, a day late to everybody reading the group. So the report covers the day it runs on. The count closes at the report time and render_day says so, because a total that quietly omits three hours is worse than one that admits to it. Everything that made a late day recoverable stays: the per-group marker still prevents a double post, and days_to_report still yields every day an outage swallowed. closing_periods keeps taking a day rather than reading a clock, so a week now closes on the Sunday evening it ends -- off a day that is itself still running -- and a catch-up on a week-old Sunday still gets it right. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017w1HZ3cZ7neL3rFdQ6VMBA |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| backfill.py | ||
| commands.py | ||
| curiosities.py | ||
| events.py | ||
| facts.py | ||
| highlights.py | ||
| nightly.py | ||
| periods.py | ||
| queries_day.py | ||
| queries_period.py | ||
| recorder.py | ||
| records.py | ||
| render_day.py | ||
| render_extra.py | ||
| render_period.py | ||
| streaks.py | ||
| text.py | ||