Major Domo Database - PostgreSQL database service for SBA bot
Moved imports from middle of files to the top for better code organization. Changes: - Moved csv, io, peewee, playhouse imports to top of player_service.py - Moved playhouse import to top of team_service.py - Kept lazy DB imports (Player, Team, db) in methods where needed with clear "Lazy import" comments explaining why Rationale for remaining mid-file imports: - Player/Team/db imports are lazy-loaded to avoid importing heavyweight db_engine module during testing with mocks - Only imported when RealRepository methods are actually called - Prevents circular import issues and unnecessary DB connections in tests All tests pass: 76 passed, 9 skipped, 0 failed Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| app | ||
| migrations | ||
| scripts | ||
| test-storage | ||
| tests | ||
| .dockerignore | ||
| .env | ||
| .gitignore | ||
| =2.9.0 | ||
| CLAUDE.md | ||
| data_consistency_check.py | ||
| DATA_CONSISTENCY_REPORT.md | ||
| db_engine.py | ||
| docker-compose.yml | ||
| Dockerfile | ||
| Dockerfile.optimized | ||
| LICENSE | ||
| main.py | ||
| migrations.py | ||
| pd_master.db | ||
| pytest.ini | ||
| REFACTOR_DOCUMENTATION.md | ||
| requirements.txt | ||
| VERSION | ||