Merge branch 'main' into issue/101-perf-parallelize-scout-opportunity-creation-and-re
All checks were successful
Ruff Lint / lint (pull_request) Successful in 15s
All checks were successful
Ruff Lint / lint (pull_request) Successful in 15s
This commit is contained in:
commit
e5ec88f794
@ -339,7 +339,7 @@ async def display_cards(
|
||||
cards.sort(key=lambda x: x["player"]["rarity"]["value"])
|
||||
logger.debug("Cards sorted successfully")
|
||||
|
||||
card_embeds = [await get_card_embeds(x) for x in cards]
|
||||
card_embeds = list(await asyncio.gather(*[get_card_embeds(x) for x in cards]))
|
||||
logger.debug(f"Created {len(card_embeds)} card embeds")
|
||||
|
||||
page_num = 0 if pack_cover is None else -1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user