feat: NFL dynasty engine + /dashboard/nfl_roster endpoint#108
Merged
Conversation
engine/nfl_dynasty.py: pure deterministic dynasty logic — per-position age-curve bands, FantasyCalc param derivation (ppr snapped to 0/0.5/1, numQbs counts QB+SUPER_FLEX slots), best-effort value joins (players by sleeperId, picks by label), startable-only depth flags, and a value-weighted roster-window verdict (top-N core, N = starting slots). engine/fantasycalc.py: free-API client cached in-process per settings combo (12h TTL, stale-if-error, single-flight). No dashboard_cache row and no widget-check migration — values are shared across leagues with the same settings, and assembling per request keeps the page fresh the moment a sync lands. POST /dashboard/nfl_roster (owner-scoped, blocking work off the loop) returns the ready-to-render payload; named under /dashboard/ so useDashboardWidget works unchanged. No AI call — costs nothing per view. tests/test_nfl_dynasty.py: first unit tests in the repo (23), wired into CI via a pytest step. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
railway-app
Bot
temporarily deployed
to
dynastyops-secordlabs / dynastyos-pr-108
July 24, 2026 02:50
Destroyed
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.
Summary
PR 2 of 3 for the NFL dynasty roster view (roadmap #6).
/dashboard/souseDashboardWidgetworks unchanged in PR 3. No AI call.Testing
pytest tests/ -q→ 23 passed;ruff check .clean; import smoke passes.🤖 Generated with Claude Code