Massprice/templates
Barely Removable 8b58dadc5a
All checks were successful
Deploy / deploy (push) Successful in 57s
Add two-stage run verification and 24-hour Activity filter
Status now reads "Sent" when the confirmation click lands, since that
only means MassPrice accepted the run request, not that it finished —
their own processing is async and takes anywhere from ~1 to ~22
minutes in observed practice. A new "Complete" column tracks that
separately: run_rule() captures a watermark (the target rule's current
top data-activitylogid on /Activity/List, not the displayed timestamp
string, to sidestep fragile date/timezone parsing) before submitting,
and scheduler.py schedules a one-off verify_run() job
VERIFY_DELAY_MINUTES later to check whether a new "Complete" entry
appeared past that watermark.

rebuild_jobs() now only clears recurring "rule-*" jobs, not the one-off
"verify-*" jobs, so editing a schedule can't cancel a verification
that's already in flight for an earlier run.

Also scopes the Activity page to the last 24 hours per request.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H6TgffxTvYhqxykAbVQg2v
2026-08-31 21:49:45 -07:00
..
_shell.html Replace credential auto-login with a Chrome-remote-debugging session capture flow 2026-08-31 19:55:08 -07:00
activity.html Add two-stage run verification and 24-hour Activity filter 2026-08-31 21:49:45 -07:00
dashboard.html Add an All Days button to the schedule editor 2026-08-31 20:29:19 -07:00
login.html Initial scaffold: Flask webui + APScheduler + Playwright automation for MassPrice rule scheduling 2026-08-31 17:31:53 -07:00
session.html Replace Chrome-remote-debugging login capture with a cookie-paste import flow 2026-08-31 20:10:51 -07:00