paper-dynasty-discord/helpers
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 feat: Add Scouting feature (Wonder Pick-style social pack opening) 2026-03-09 13:22:58 +00:00
constants.py Normalize Player.franchise queries to use Team.sname 2026-01-07 12:01:00 -06:00
discord_utils.py Cogs to Packages Groundwork 2025-08-17 08:46:55 -05:00
main.py perf: parallelize roll_for_cards DB calls and increase pack limit to 20 (#97) 2026-03-20 08:17:08 -05:00
random_content.py Cogs to Packages Groundwork 2025-08-17 08:46:55 -05:00
scouting.py feat: add buy-scout-token option when daily limit exceeded 2026-03-09 13:12:35 -05:00
search_utils.py Cogs to Packages Groundwork 2025-08-17 08:46:55 -05:00
utils.py fix: update owner_only to use Cal's correct Discord ID 2026-03-09 13:22:58 +00:00