Commit Graph

2 Commits

Author SHA1 Message Date
Cal Corum
f9c25c5632 fix: address review feedback on card-of-the-week PR (#212)
- Add `= None` default to `Optional[str]` field in CardOfTheWeekResponse
  (Pydantic v1 convention: Optional fields should have explicit None default)
- Remove unused `_PACK_COUNTER` dead variable from test module
- Remove unused `cardset` parameter from `_make_pack_type` helper and
  update all 6 call sites

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 21:01:33 -05:00
Cal Corum
507037f5b9 feat: add GET /api/v2/cards/featured/card-of-the-week endpoint
Exposes the highest-rated card from the past 7 days (configurable via
?days=) as a Discord-embed-ready payload.  AI teams are excluded by
default (?include_ai=true lifts the filter).  Deterministic tiebreak:
rating desc, pack open_time desc, card id desc.

Roadmap: Phase 2.6c — lowest-friction entry into the automated content
pipeline.  Single-call response includes player name, team, rarity,
rating, card image URL, and cardset name.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 10:31:48 -05:00