major-domo-legacy/cogs
Cal Corum bbb4233b45 Replace hardcoded salary cap with dynamic Team.salary_cap
P2 Tasks completed:
- SWAR-002: Update draft.py cap check to use exceeds_salary_cap()
- SWAR-003: Update trade validation in transactions.py
- SWAR-004: Update first drop/add validation
- SWAR-005: Update second drop/add validation
- SWAR-006: Update legal command roster validation

Changes:
- Enhanced helper functions to support both dict and Pydantic models
- All error messages now show actual team cap value
- Added 4 additional tests for Pydantic model support (21 total)
- All salary cap checks now use centralized exceeds_salary_cap()

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-09 17:14:17 -06:00
..
admins.py Update calls for /current to new Current class 2025-06-07 23:52:59 -05:00
dice.py Migrated to rotating log handler 2024-12-11 14:52:28 -06:00
draft.py Replace hardcoded salary cap with dynamic Team.salary_cap 2025-12-09 17:14:17 -06:00
exception-handler.py Migrated to rotating log handler 2024-12-11 14:52:28 -06:00
fun.py Update calls for /current to new Current class 2025-06-07 23:52:59 -05:00
gameday.py Post Draft fixes for season 12 2025-07-12 23:15:00 -05:00
gameplay.py Migrated to rotating log handler 2024-12-11 14:52:28 -06:00
owner.py Migrated to rotating log handler 2024-12-11 14:52:28 -06:00
players.py Schedule fix, transaction priority fix 2025-07-25 10:00:25 -05:00
transactions.py Replace hardcoded salary cap with dynamic Team.salary_cap 2025-12-09 17:14:17 -06:00