paper-dynasty-discord/discord_ui
Cal Corum 56007aaeec
All checks were successful
Build Docker Image / build (pull_request) Successful in 1m54s
perf: parallelize roll_for_cards DB calls and increase pack limit to 20 (#97)
Restructure roll_for_cards into three phases: dice rolling (CPU-only),
batched player fetches (one per rarity tier via asyncio.gather), and
gathered writes (cards + pack patches concurrent). Reduces 20-30
sequential API calls to ~6 gathered calls for 5 packs.

Also fixes leaked `x` variable bug in dupe branch, removes dead
`all_players` accumulation, and bumps open-packs limit from 5 to 20.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 08:17:08 -05:00
..
__init__.py refactor: Consolidate scouting utilities, add test suite, use Discord timestamps 2026-03-09 13:22:58 +00:00
confirmations.py Catchup commit 2025-07-22 09:22:19 -05:00
dropdowns.py Catchup commit 2025-07-22 09:22:19 -05:00
pagination.py Catchup commit 2025-07-22 09:22:19 -05:00
scout_view.py fix: use money endpoint for scout token wallet deduction 2026-03-16 12:23:33 -05:00
selectors.py perf: parallelize roll_for_cards DB calls and increase pack limit to 20 (#97) 2026-03-20 08:17:08 -05:00