--- id: 3ea784ee-2bee-4ee4-994a-c6af3aff2c80 type: solution title: "Player command stats only show for cardsets with game data" tags: [paper-dynasty, python, bug-investigation, player-command, stats, cardsets] importance: 0.7 confidence: 0.8 created: "2025-12-08T03:29:38.569388+00:00" updated: "2025-12-08T03:29:38.569388+00:00" relations: - target: b4fea49c-7576-46e0-94ef-af3a419b2f43 type: RELATED_TO direction: incoming strength: 0.5 --- The /player command stats display uses player_id which is unique per cardset. Player 'Mike Trout 2024' (cardset 17) has different player_id than 'Mike Trout 2005' (cardset 27). Stats are recorded in StratPlay with batter FK to Player. Stats only appear for player_ids that have game data. New cardsets like 27 (2005 Live) won't show stats until games are played using cards from that cardset. This is working as designed - each cardset version is distinct. Code path: get_card_embeds() in helpers/main.py -> db_get('plays/batting') -> stratplays.py /batting endpoint -> filters by Player.player_id. Also found PD_SEASON mismatch: helpers/constants.py=9 vs root constants.py=10.