Commit Graph

16 Commits

Author SHA1 Message Date
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
Cal Corum
9bb84ce287 Post Draft fixes for season 12 2025-07-12 23:15:00 -05:00
Cal Corum
b4d84b6125 S12 draft updates plus dataclass overhaul 2025-06-07 23:53:32 -05:00
Cal Corum
8d9e2189a7 Cap check update in draft command 2025-05-25 16:44:38 -05:00
Cal Corum
f8716c69cb Set dem_week to 1 in the draft 2024-12-19 08:37:55 -06:00
Cal Corum
86eab613aa S11 prep 2024-12-14 11:25:18 -06:00
Cal Corum
9f157cadb3 Add !gib to draft alias list 2024-12-13 09:30:58 -06:00
Cal Corum
274e3411be S11 draft updates 2024-12-11 16:47:02 -06:00
Cal Corum
e54cf885ad Migrated to rotating log handler
Added random_gif()
Moved back from exception-handler cog to local error handling
Updated !keepers to be season agnostic
Added new !sync param to update and clear local guild
Added error checking to !player command
2024-12-11 14:52:28 -06:00
Cal Corum
6308d32f8e Migrate from PATCH /players to PUT 2024-07-03 11:20:03 -05:00
Cal Corum
abeb2ecb0f S10 Draft Updates 2024-06-27 00:30:54 -05:00
Cal Corum
f60c1deea7 Season 9 Draft Updates 2024-01-14 22:44:50 -06:00
Cal Corum
3cc12d2cf1 Updating cogs for new v3 API 2023-07-24 23:40:50 -05:00
Cal Corum
3ea1b0cf5e Add set-keepers command, update draft cog for new api 2023-07-17 23:31:40 -05:00
Cal Corum
ac34c5dd10 Migrate get_current() to db_get 2023-06-27 10:18:58 -05:00
Cal Corum
181689fb61
Initial commit 2023-02-19 21:22:57 -06:00