From 541c5bbc1e22000f08cec8e97250703babba27e6 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Thu, 8 Jan 2026 14:22:06 -0600 Subject: [PATCH] Fix pack type grouping logic in packs display MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously p_group was only set if pack type already existed in p_data, which would silently skip new pack types. Now properly initializes the pack type list when encountering a new type. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- cogs/economy_new/packs.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cogs/economy_new/packs.py b/cogs/economy_new/packs.py index 7add272..619bbf3 100644 --- a/cogs/economy_new/packs.py +++ b/cogs/economy_new/packs.py @@ -263,8 +263,10 @@ class Packs(commands.Cog): logger.debug(f'pack: {pack}') logger.debug(f'pack cardset: {pack["pack_cardset"]}') if pack['pack_team'] is None and pack['pack_cardset'] is None: - if pack['pack_type']['name'] in p_data: - p_group = pack['pack_type']['name'] + p_group = pack['pack_type']['name'] + # Add to p_data if this is a new pack type + if p_group not in p_data: + p_data[p_group] = [] elif pack['pack_team'] is not None: if pack['pack_type']['name'] == 'Standard':