major-domo-v2/commands/league
Cal Corum 6f3339a42e perf: parallelize independent API calls (#90)
Closes #90

Replace sequential awaits with asyncio.gather() in all locations identified
in the issue:

- commands/gameplay/scorebug.py: parallel team lookups in publish_scorecard
  and scorebug commands; also fix missing await on async scorecard_tracker calls
- commands/league/submit_scorecard.py: parallel away/home team lookups
- tasks/live_scorebug_tracker.py: parallel team lookups inside per-scorecard
  loop (compounds across multiple active games); fix missing await on
  get_all_scorecards
- commands/injuries/management.py: parallel get_current_state() +
  search_players() in injury_roll, injury_set_new, and injury_clear
- services/trade_builder.py: parallel per-participant roster validation in
  validate_trade()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-20 17:48:10 +00:00
..
__init__.py fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
CLAUDE.md CLAUDE: Add comprehensive CLAUDE.md documentation files for AI agent guidance 2025-10-20 20:30:07 -05:00
info.py fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
schedule.py cleanup: remove unused weeks_ahead parameter from get_upcoming_games 2026-03-20 10:11:18 -05:00
standings.py fix: remove 226 unused imports across the codebase (closes #33) 2026-02-20 11:35:04 -06:00
submit_scorecard.py perf: parallelize independent API calls (#90) 2026-03-20 17:48:10 +00:00