bugfix/injury-team-null-errors #1

Merged
cal merged 5 commits from bugfix/injury-team-null-errors into main 2026-02-05 22:54:27 +00:00

5 Commits

Author SHA1 Message Date
cal
e03ba79fa5 Update VERSION
All checks were successful
Build Docker Image / build (pull_request) Successful in 2m54s
2026-02-05 22:50:06 +00:00
Cal Corum
ac3cbebb9f Remove unused .mcp.json config file
Some checks failed
Build Docker Image / build (pull_request) Failing after 18s
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-05 15:14:36 -06:00
Cal Corum
bfe78fb7ac Clean up legacy CI/CD files and one-time scripts
Removed legacy CI/CD infrastructure:
- GitLab CI config (.gitlab-ci.yml, .gitlab/ directory)
- Manual build scripts (build-and-push.sh, BUILD_AND_PUSH.md)
- Unused Dockerfile variant (Dockerfile.versioned)

Removed outdated documentation:
- AGENTS.md (superseded by comprehensive CLAUDE.md files)

Removed one-time recovery scripts:
- scripts/ directory (week 19 transaction recovery - completed)
- test_real_data.py (ad-hoc testing script)

Note: Runtime artifacts (.coverage, htmlcov/, __pycache__/, etc.) are already
properly excluded via .gitignore and were not tracked in git.

All CI/CD is now handled by .gitea/workflows/docker-build.yml

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-05 15:09:24 -06:00
Cal Corum
c7f55d79e3 Fix injury commands player.team None errors and add Gitea CI/CD
- Fix /injury roll and /injury clear commands crashing when player.team is None
- Add team fetching logic after search_players() for all injury commands
- The search_players() API endpoint returns team as ID only (not nested object)
- Added null checks and explicit team fetching using team_service.get_team()

- Add Gitea Actions workflow for automated Docker builds
- Implements semantic version validation on PRs
- Builds and pushes to Docker Hub on main branch merges
- Sends Discord notifications on success/failure
- Generates 3 image tags: latest, v{VERSION}, v{VERSION}-{COMMIT}

Fixes AttributeError: 'NoneType' object has no attribute 'roster_type'
Fixes AttributeError: 'NoneType' object has no attribute 'thumbnail'

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-05 14:16:22 -06:00
Cal Corum
ab8bfa115f Fix /injury roll command crash when player.team is None
The search_players() API endpoint returns team as an ID only (not nested object),
causing player.team to be None. Added null check before accessing team.thumbnail.

Fixes AttributeError: 'NoneType' object has no attribute 'thumbnail'

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-04 21:50:43 -06:00