Fix /player stats bug - sync helpers/constants.py with root
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 <noreply@anthropic.com>
This commit is contained in:
parent
06ff92df6c
commit
c3054971eb
@ -8,43 +8,42 @@ import discord
|
|||||||
from typing import Literal
|
from typing import Literal
|
||||||
|
|
||||||
# Season Configuration
|
# Season Configuration
|
||||||
SBA_SEASON = 11
|
SBA_SEASON = 12
|
||||||
PD_SEASON = 9
|
PD_SEASON = 10
|
||||||
ranked_cardsets = [20, 21, 22, 17, 18, 19]
|
ranked_cardsets = [24, 25, 26, 27, 28, 29]
|
||||||
LIVE_CARDSET_ID = 27
|
LIVE_CARDSET_ID = 27
|
||||||
LIVE_PROMO_CARDSET_ID = 28
|
LIVE_PROMO_CARDSET_ID = 28
|
||||||
MAX_CARDSET_ID = 30
|
MAX_CARDSET_ID = 30
|
||||||
|
|
||||||
# Cardset Configuration
|
# Cardset Configuration
|
||||||
CARDSETS = {
|
CARDSETS = {
|
||||||
'Ranked': {
|
'ranked': {
|
||||||
'primary': ranked_cardsets,
|
'primary': ranked_cardsets,
|
||||||
'human': ranked_cardsets
|
'human': ranked_cardsets
|
||||||
},
|
},
|
||||||
'Minor League': {
|
'minor-league': {
|
||||||
'primary': [20, 8], # 1998, Mario
|
'primary': [27, 8], # 2005, Mario
|
||||||
'secondary': [6], # 2013
|
'secondary': [24], # 2025
|
||||||
'human': [x for x in range(1, MAX_CARDSET_ID)]
|
'human': [x for x in range(1, 30)]
|
||||||
},
|
},
|
||||||
'Major League': {
|
'major-league': {
|
||||||
'primary': [20, 21, 17, 18, 12, 6, 7, 8], # 1998, 1998 Promos, 2024, 24 Promos, 2008, 2013, 2012, Mario
|
'primary': [27, 28, 24, 25, 13, 14, 6, 8], # 2005 + Promos, 2025 + Promos, 2018 + Promos, 2012, Mario
|
||||||
'secondary': [5, 3], # 2019, 2022
|
'secondary': [5, 3], # 2019, 2022
|
||||||
'human': ranked_cardsets
|
'human': ranked_cardsets
|
||||||
},
|
},
|
||||||
'Hall of Fame': {
|
'hall-of-fame': {
|
||||||
'primary': [x for x in range(1, MAX_CARDSET_ID)],
|
'primary': [x for x in range(1, 30)],
|
||||||
'secondary': [],
|
|
||||||
'human': ranked_cardsets
|
'human': ranked_cardsets
|
||||||
},
|
},
|
||||||
'Flashback': {
|
'flashback': {
|
||||||
'primary': [5, 1, 3, 9, 8], # 2019, 2021, 2022, 2023, Mario
|
'primary': [13, 5, 1, 3, 8], # 2018, 2019, 2021, 2022, Mario
|
||||||
'secondary': [13, 5], # 2018, 2019
|
'secondary': [24], # 2025
|
||||||
'human': [5, 1, 3, 9, 8] # 2019, 2021, 2022, 2023
|
'human': [13, 5, 1, 3, 8] # 2018, 2019, 2021, 2022
|
||||||
},
|
},
|
||||||
'gauntlet-3': {
|
'gauntlet-3': {
|
||||||
'primary': [13], # 2018
|
'primary': [13], # 2018
|
||||||
'secondary': [5, 11, 9], # 2019, 2016, 2023
|
'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': {
|
'gauntlet-4': {
|
||||||
'primary': [3, 6, 16], # 2022, 2013, Backyard Baseball
|
'primary': [3, 6, 16], # 2022, 2013, Backyard Baseball
|
||||||
@ -54,17 +53,26 @@ CARDSETS = {
|
|||||||
'gauntlet-5': {
|
'gauntlet-5': {
|
||||||
'primary': [17, 8], # 2024, Mario
|
'primary': [17, 8], # 2024, Mario
|
||||||
'secondary': [13], # 2018
|
'secondary': [13], # 2018
|
||||||
'human': [x for x in range(1, MAX_CARDSET_ID)]
|
'human': [x for x in range(1, 30)]
|
||||||
},
|
},
|
||||||
'gauntlet-6': {
|
'gauntlet-6': {
|
||||||
'primary': [20, 8], # 1998, Mario
|
'primary': [20, 8], # 1998, Mario
|
||||||
'secondary': [12], # 2008
|
'secondary': [12], # 2008
|
||||||
'human': [x for x in range(1, MAX_CARDSET_ID)]
|
'human': [x for x in range(1, 30)]
|
||||||
},
|
},
|
||||||
'gauntlet-7': {
|
'gauntlet-7': {
|
||||||
'primary': [5, 23], # 2019, Brilliant Stars
|
'primary': [5, 23], # 2019, Brilliant Stars
|
||||||
'secondary': [1], # 2021
|
'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
|
# Discord UI Options
|
||||||
SELECT_CARDSET_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 Season', value='24'),
|
||||||
discord.SelectOption(label='2025 Promos', value='25'),
|
discord.SelectOption(label='2025 Promos', value='25'),
|
||||||
discord.SelectOption(label='1998 Season', value='20'),
|
discord.SelectOption(label='1998 Season', value='20'),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user