Added data consistency check to automatically clear stale injury records where is_active=True but il_return=None. This prevents old injury records from blocking new injury creation when players should not be injured. - Detects mismatch between injury table and player il_return field - Auto-clears stale injury records with warning log - Allows legitimate injuries with matching il_return to block command - Logs both warning (stale data found) and info (cleared) for debugging Fixes issue where Ronald Acuna Jr had active injury record but no il_return. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| CLAUDE.md | ||
| management.py | ||