Single season db consolidation#259
Merged
Merged
Conversation
… 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>
… scoring reads season.db directly
…wise) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Deploying botblitz with
|
| Latest commit: |
1c20752
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://dfb94e49.botblitz.pages.dev |
| Branch Preview URL: | https://single-season-db-consolidati.botblitz.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.