From 07195f9ad3903f53a330963c4ffe620f0a63f4b7 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sun, 9 Nov 2025 13:03:41 -0600 Subject: [PATCH] CLAUDE: Add Event ID 9 (Live 25) gauntlet configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed missing draft configuration for Event ID 9 "Live 25" gauntlet that was causing crashes when users tried to start a gauntlet run. Changes: - Added cardset configuration for Event 9 (cardsets 27, 28, 29) - Added Event 9 to max_counts progressive difficulty logic - Added Event 9 to draft_loop() events list - Opponent configuration for Event 9 was already present 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- gauntlets.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gauntlets.py b/gauntlets.py index 8c390ac..590a33f 100644 --- a/gauntlets.py +++ b/gauntlets.py @@ -364,6 +364,10 @@ async def run_draft(interaction: discord.Interaction, main_team: Team, this_even embed_description = f'{this_event["name"]}' base_params = [('cardset_id', 24), ('cardset_id', 25), ('cardset_id', 22), ('cardset_id', 23), ('limit', 8)] + elif this_event['id'] == 9: + embed_title = f'{main_team.lname} - {this_event['name']} Draft' + embed_description = f'{this_event["name"]}' + base_params = [('cardset_id', 27), ('cardset_id', 28), ('cardset_id', 29), ('limit', 8)] else: logger.error(f'run_draft - Event ID {this_event["id"]} not recognized') raise KeyError(f'Draft data not found for Gauntlet {this_event["id"]}') @@ -418,7 +422,7 @@ async def run_draft(interaction: discord.Interaction, main_team: Team, this_even } if this_event['id'] in [1, 2]: max_counts['MVP'] = 2 - elif this_event['id'] in [5, 6, 8]: + elif this_event['id'] in [5, 6, 8, 9]: g_query = await db_get( 'games', params=[('season', draft_team.season), ('team1_id', draft_team.id), ('gauntlet_id', this_event['id'])] @@ -1548,7 +1552,7 @@ async def run_draft(interaction: discord.Interaction, main_team: Team, this_even # Update roster embed round_num += 1 await last_message.edit(content=None, embeds=get_embeds(include_links=False)) - elif this_event['id'] in [5, 6, 8]: + elif this_event['id'] in [5, 6, 8, 9]: await draft_loop() elif this_event['id'] == 7: round_num = 1