claude-memory/graph/solutions/player-command-stats-only-show-for-cardsets-with-game-data-3ea784.md
Cal Corum b140d4d82a migrate: 313 memories from MemoryGraph
- 313 new markdown files created
- 30 relationships embedded
- 313 entries indexed
- State initialized with usage data
2026-02-13 11:11:48 -06:00

1.1 KiB

id type title tags importance confidence created updated relations
3ea784ee-2bee-4ee4-994a-c6af3aff2c80 solution Player command stats only show for cardsets with game data
paper-dynasty
python
bug-investigation
player-command
stats
cardsets
0.7 0.8 2025-12-08T03:29:38.569388+00:00 2025-12-08T03:29:38.569388+00:00
target type direction strength
b4fea49c-7576-46e0-94ef-af3a419b2f43 RELATED_TO incoming 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.