Remove or fix dead CSV code in v1_cards_get_one referencing removed roster fields #25
Labels
No Label
ai-changes-requested
ai-failed
ai-merged
ai-pr-opened
ai-reviewed
ai-reviewing
ai-reviewing
ai-working
bug
enhancement
evolution
performance
phase-0
phase-1a
phase-1b
phase-1c
phase-1d
security
tech-debt
todo
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cal/paper-dynasty-database#25
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
`app/routers_v2/cards.py:144-148`. CSV branch accesses `this_card.roster1.name`, `.roster2.name`, `.roster3.name` — Card model has no such fields. Will raise AttributeError at runtime.
Priority: high
Fixed in PR #35: #35
Removed
roster1,roster2,roster3from the CSV header and data row inv1_cards_get_one. TheCardmodel has no such fields — they were remnants of a previous schema. The CSV now reflects only the actual model fields:id,player,team,pack,value.