Major Domo v2 - Discord bot for Strat-o-Matic Baseball Association
Go to file
Cal Corum 483f1f492f Fix draft pick API parsing and enhance admin command feedback
Root Cause Fixes:
- Add _extract_items_and_count_from_response() override to DraftPickService
  to handle API returning 'picks' key instead of 'draftpicks'
- Add custom from_api_data() to DraftPick model to handle API field mapping
  (origowner/owner/player -> origowner_id/owner_id/player_id)

Enhancements:
- Add timer status to /draft-admin set-pick success message
  - Shows relative deadline timestamp when timer active
  - Shows "Timer Inactive" when timer not running

Also includes related draft module improvements from prior work.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-10 15:33:52 -06:00
.gitlab CLAUDE: Add automated weekly transaction freeze/thaw system 2025-10-20 12:16:13 -05:00
.vscode VS Code Settings 2025-11-06 21:50:47 -06:00
api CLAUDE: Add automated weekly transaction freeze/thaw system 2025-10-20 12:16:13 -05:00
commands Fix draft pick API parsing and enhance admin command feedback 2025-12-10 15:33:52 -06:00
models Fix draft pick API parsing and enhance admin command feedback 2025-12-10 15:33:52 -06:00
scripts CLAUDE: Automate player roster updates in transaction freeze/thaw system 2025-10-27 14:25:00 -05:00
services Fix draft pick API parsing and enhance admin command feedback 2025-12-10 15:33:52 -06:00
tasks Fix test suite failures across 18 files (785 tests passing) 2025-12-09 16:01:56 -06:00
tests Fix draft pick API parsing and enhance admin command feedback 2025-12-10 15:33:52 -06:00
utils Fix draft pick API parsing and enhance admin command feedback 2025-12-10 15:33:52 -06:00
views Fix draft pick API parsing and enhance admin command feedback 2025-12-10 15:33:52 -06:00
.dockerignore Add debug directory to .gitignore and .dockerignore 2025-10-24 00:06:34 -05:00
.gitignore Draft pick service and draft helpers 2025-10-24 10:24:14 -05:00
.gitlab-ci.yml CLAUDE: Add automated weekly transaction freeze/thaw system 2025-10-20 12:16:13 -05:00
.mcp.json CLAUDE: Add automated weekly transaction freeze/thaw system 2025-10-20 12:16:13 -05:00
bot.py CLAUDE: Integrate draft commands into bot.py 2025-10-24 22:17:09 -05:00
BUILD_AND_PUSH.md CLAUDE: Add comprehensive Docker deployment infrastructure 2025-10-16 00:54:56 -05:00
build-and-push.sh CLAUDE: Add comprehensive Docker deployment infrastructure 2025-10-16 00:54:56 -05:00
CLAUDE.md Add comprehensive draft services test suite and API fixes (v2.23.0) 2025-12-09 15:11:51 -06:00
COMMAND_LIST.md CLAUDE: Add comprehensive scorecard submission system 2025-10-16 00:21:32 -05:00
config.py Add configurable roster limits with offseason support 2025-12-04 11:06:36 -06:00
docker-compose.dev.yml CLAUDE: Add comprehensive Docker deployment infrastructure 2025-10-16 00:54:56 -05:00
docker-compose.yml Fix @requires_team decorator API error handling 2025-11-14 09:31:14 -06:00
DOCKER.md CLAUDE: Add comprehensive Docker deployment infrastructure 2025-10-16 00:54:56 -05:00
Dockerfile CLAUDE: Add comprehensive Docker deployment infrastructure 2025-10-16 00:54:56 -05:00
Dockerfile.versioned CLAUDE: Add automated weekly transaction freeze/thaw system 2025-10-20 12:16:13 -05:00
exceptions.py CLAUDE: Add comprehensive scorecard submission system 2025-10-16 00:21:32 -05:00
pyrightconfig.json CLAUDE: Convert constants to configurable environment variables 2025-10-16 10:40:22 -05:00
requirements.txt CLAUDE: Add comprehensive Docker deployment infrastructure 2025-10-16 00:54:56 -05:00
test_real_data.py Consolidate season config variables to single source (v2.21.0) 2025-12-02 16:12:16 -06:00
VERSION Add comprehensive draft services test suite and API fixes (v2.23.0) 2025-12-09 15:11:51 -06:00