From adaa8206c805681f9f6ef4ffb9b258b022db17de Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Thu, 29 May 2025 22:19:34 -0500 Subject: [PATCH] Players bug fix --- app/routers_v2/players.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/routers_v2/players.py b/app/routers_v2/players.py index 41d45e2..34c72d5 100644 --- a/app/routers_v2/players.py +++ b/app/routers_v2/players.py @@ -403,7 +403,8 @@ async def get_batter_card( raise HTTPException(status_code=404, detail=f'Ratings not found for batting card {this_bc.id}') card_data = get_batter_card_data(this_player, this_bc, rating_vl, rating_vr, all_pos) - if this_player.description in this_player.cardset.name: + # Include Pokemon cardsets here to remove "Pokemon" from cardset name on card + if this_player.description in this_player.cardset.name and this_player.cardset.id not in [23]: card_data['cardset_name'] = this_player.cardset.name else: card_data['cardset_name'] = this_player.description @@ -424,7 +425,7 @@ async def get_batter_card( raise HTTPException(status_code=404, detail=f'Ratings not found for pitching card {this_pc.id}') card_data = get_pitcher_card_data(this_player, this_pc, rating_vl, rating_vr, all_pos) - if this_player.description in this_player.cardset.name: + if this_player.description in this_player.cardset.name and this_player.cardset.id not in [23]: card_data['cardset_name'] = this_player.cardset.name else: card_data['cardset_name'] = this_player.description