Skip to content

Single season db consolidation#259

Merged
mitchwebster merged 24 commits into
mainfrom
single-season-db-consolidation
Jun 6, 2026
Merged

Single season db consolidation#259
mitchwebster merged 24 commits into
mainfrom
single-season-db-consolidation

Conversation

@mitchwebster

Copy link
Copy Markdown
Owner

No description provided.

Mitch Webster and others added 24 commits June 5, 2026 21:05
… layer

Consolidate the stats/game-state DBs into one data/game_states/{year}/season.db,
add a bootstrap_data CLI (scrape -> build-season), fold StatsDB/ProjectionsDB into
DatabaseManager, and make blitz_env the only surface a bot touches (SQL over
documented tables). Engine populates league state during draft; weekly job appends
to the one DB. 2025 archived as-is; new layout begins at 2026.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Bite-sized TDD plan: bootstrap_data CLI (scrape + build-season) producing
data/game_states/{year}/season.db, DatabaseManager accessors absorbing
StatsDB/ProjectionsDB, removal of those classes, and harness reading season.db
offline. Engine (Plan 2) and migration/docs (Plan 3) deferred.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
… imports

Down-payment on the single-season-db refactor: init_preseason_stats resolves
data/stats/{year}/stats.db (absolute, fails loudly if missing); StatsDB reads the
local game DB instead of nfl_data_py/scraping; requests/bs4/nfl_data_py are
lazy-imported so `import blitz_env` stays lean; notebook scores 2025 offline.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…anager)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add docs/bot-data-schema.md documenting the table contract for bot authors.
Add tests/test_standard_bot_draft.py proving standard-bot's draft_player works
against the new season.db-backed harness without any changes to the bot file.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…wise)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying botblitz with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1c20752
Status: ✅  Deploy successful!
Preview URL: https://dfb94e49.botblitz.pages.dev
Branch Preview URL: https://single-season-db-consolidati.botblitz.pages.dev

View logs

@mitchwebster mitchwebster merged commit 07e41dd into main Jun 6, 2026
2 checks passed
@mitchwebster mitchwebster deleted the single-season-db-consolidation branch June 6, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant