Repository navigation
1.0.43
Stats now show only the current season, and the admin warns when seasons get mixed up.
What changed
- Current Season setting (Stats page): live stats, stat leaders, player pages and roster pages show only this season. The stats dropdown label matches it.
- No blank stats after updating: if no current season is set, each team shows its newest season, and a notice offers a one-click "Set current season".
- Season health (Teams page): flags teams still showing an old season, sources from the wrong season or with no season, and two teams using the same league team ID.
- Archive a Season (Teams → Advanced) archives only the chosen season, optionally for one team, and keeps any newer-season sources you've already added.
- Past Seasons now respects a stats page's team filter.
Season rollover
- Add the new season's sources.
- Set Current Season on the Stats page.
- On Teams, use the Season health panel's "Archive …" button for each team still showing the old season.
Includes a database update (stats season column) that runs automatically.