Spaces:
Running
Running
Commit History
18 days ago
-
Fix inflated defcon/attacking shares; refresh xMins every 3 hours
Projections: - closed_shares filled missing squad minutes by inflating everyone's per-90 rate. Spurs/Man Utd sat near 780 of 990 minutes in GW8, so their CBITR came out 1.64x and pushed Tonali past the defcon threshold. Unlisted minutes now keep their share at the squad's own rate. - Team CBIT/CBITR totals include the keeper but keeper baselines are 0; hand out only the outfield share (GK 2.1% CBIT, 9.0% CBITR, PL 2022-). - Baselines used 'Blocked shots' (own shots blocked) for CBIT and the BPS floor instead of defensive 'Blocks'. Automation: - run_auto.py --xmins-only: Solio -> Supabase in ~1 min, for a 3-hourly task. A shared lock keeps it off the Chrome profile while the full run has it. - main.py re-reads admin_xmins every 15 min and recalculates on change, instead of only at startup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>c91d10c
-
Make pipeline failures visible and keep match data fresh automatically
Three gaps that all pointed the same way: the run could go wrong, or go stale, without anyone finding out for two days. Failures were silent. Task Scheduler discards stdout, so the scrapers' print() diagnostics were thrown away and the 2026-09-03 break left one line in the log. Now every run writes logs/last_run_status.json and a non-zero exit raises a Windows toast naming the exit code and the last error. _tee_stdout routes submodule print() into the log file; the logging StreamHandler holds the stdout captured at basicConfig time, so swapping sys.stdout cannot recurse. The Solio grid is virtualized and a capture can land mid-render, which is what produced the 4-of-9 header list that broke the last run. The scrape now retries once. An expired session or a failed metric toggle fails identically every attempt, so those still raise immediately rather than burning another 45s. data/ only refreshed when someone ran scrape_luigi.py by hand, so build_team_totals kept re-crunching the same…31b0764
-
updates
2bf5989