From c3054971eb9d0c091ed4ba0963713107a94d3397 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sun, 7 Dec 2025 21:48:13 -0600 Subject: [PATCH] Fix /player stats bug - sync helpers/constants.py with root MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PD_SEASON was set to 9 in helpers/constants.py while games are recorded in season 10. This caused /player command to return no stats for cardset 27 cards since they only have season 10 data. Changes: - PD_SEASON: 9 → 10 - SBA_SEASON: 11 → 12 - ranked_cardsets: updated to current cardsets - Added gauntlet-8 and gauntlet-9 configs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- VERSION | 2 +- helpers/constants.py | 52 +++++++++++++++++++++++++------------------- 2 files changed, 31 insertions(+), 23 deletions(-) diff --git a/VERSION b/VERSION index 91c74a5..f65dc1e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.7.7 +1.7.9 diff --git a/helpers/constants.py b/helpers/constants.py index 7715c51..129e4f7 100644 --- a/helpers/constants.py +++ b/helpers/constants.py @@ -8,43 +8,42 @@ import discord from typing import Literal # Season Configuration -SBA_SEASON = 11 -PD_SEASON = 9 -ranked_cardsets = [20, 21, 22, 17, 18, 19] +SBA_SEASON = 12 +PD_SEASON = 10 +ranked_cardsets = [24, 25, 26, 27, 28, 29] LIVE_CARDSET_ID = 27 LIVE_PROMO_CARDSET_ID = 28 MAX_CARDSET_ID = 30 # Cardset Configuration CARDSETS = { - 'Ranked': { + 'ranked': { 'primary': ranked_cardsets, 'human': ranked_cardsets }, - 'Minor League': { - 'primary': [20, 8], # 1998, Mario - 'secondary': [6], # 2013 - 'human': [x for x in range(1, MAX_CARDSET_ID)] + 'minor-league': { + 'primary': [27, 8], # 2005, Mario + 'secondary': [24], # 2025 + 'human': [x for x in range(1, 30)] }, - 'Major League': { - 'primary': [20, 21, 17, 18, 12, 6, 7, 8], # 1998, 1998 Promos, 2024, 24 Promos, 2008, 2013, 2012, Mario + 'major-league': { + 'primary': [27, 28, 24, 25, 13, 14, 6, 8], # 2005 + Promos, 2025 + Promos, 2018 + Promos, 2012, Mario 'secondary': [5, 3], # 2019, 2022 'human': ranked_cardsets }, - 'Hall of Fame': { - 'primary': [x for x in range(1, MAX_CARDSET_ID)], - 'secondary': [], + 'hall-of-fame': { + 'primary': [x for x in range(1, 30)], 'human': ranked_cardsets }, - 'Flashback': { - 'primary': [5, 1, 3, 9, 8], # 2019, 2021, 2022, 2023, Mario - 'secondary': [13, 5], # 2018, 2019 - 'human': [5, 1, 3, 9, 8] # 2019, 2021, 2022, 2023 + 'flashback': { + 'primary': [13, 5, 1, 3, 8], # 2018, 2019, 2021, 2022, Mario + 'secondary': [24], # 2025 + 'human': [13, 5, 1, 3, 8] # 2018, 2019, 2021, 2022 }, 'gauntlet-3': { 'primary': [13], # 2018 'secondary': [5, 11, 9], # 2019, 2016, 2023 - 'human': [x for x in range(1, MAX_CARDSET_ID)] + 'human': [x for x in range(1, 30)] }, 'gauntlet-4': { 'primary': [3, 6, 16], # 2022, 2013, Backyard Baseball @@ -54,17 +53,26 @@ CARDSETS = { 'gauntlet-5': { 'primary': [17, 8], # 2024, Mario 'secondary': [13], # 2018 - 'human': [x for x in range(1, MAX_CARDSET_ID)] + 'human': [x for x in range(1, 30)] }, 'gauntlet-6': { 'primary': [20, 8], # 1998, Mario 'secondary': [12], # 2008 - 'human': [x for x in range(1, MAX_CARDSET_ID)] + 'human': [x for x in range(1, 30)] }, 'gauntlet-7': { 'primary': [5, 23], # 2019, Brilliant Stars 'secondary': [1], # 2021 - 'human': [x for x in range(1, MAX_CARDSET_ID)] + 'human': [x for x in range(1, 30)] + }, + 'gauntlet-8': { + 'primary': [24], # 2025 + 'secondary': [17], + 'human': [24, 25, 22, 23] + }, + 'gauntlet-9': { + 'primary': [27], # 2005 + 'secondary': [24] # 2025 } } @@ -292,7 +300,7 @@ RARITY = { # Discord UI Options SELECT_CARDSET_OPTIONS = [ - discord.SelectOption(label='2005 Live', value='27'), + discord.SelectOption(label='2005 Season', value='27'), discord.SelectOption(label='2025 Season', value='24'), discord.SelectOption(label='2025 Promos', value='25'), discord.SelectOption(label='1998 Season', value='20'),