paper-dynasty-discord/helpers
Cal Corum 2f22a11e17
All checks were successful
Ruff Lint / lint (pull_request) Successful in 17s
perf: parallelize get_card_embeds calls in display_cards (#98)
Closes #98

Replace sequential await-in-list-comprehension with asyncio.gather() so
all card embed fetches run concurrently. Cuts 50 sequential DB round-trips
(5 packs × 5 cards × 2 calls each) down to ~2 concurrent batches.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 02:32:56 -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 fix: guard GUILD_ID env var cast against missing/invalid value (#26) 2026-03-10 09:37:34 -05:00
main.py perf: parallelize get_card_embeds calls in display_cards (#98) 2026-04-08 02:32:56 -05:00
random_content.py Cogs to Packages Groundwork 2025-08-17 08:46:55 -05:00
refractor_constants.py refactor: extract TIER_NAMES/TIER_COLORS to shared constants module (#146) 2026-04-08 00:03:46 -05:00
refractor_notifs.py refactor: extract TIER_NAMES/TIER_COLORS to shared constants module (#146) 2026-04-08 00:03:46 -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