Fix get_one_player CSV response — data row never written to output #12
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#12
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/players.py:608-664`. `return_val` assigned from `DataFrame(data_list).to_csv()` on line 635, then actual player data row appended to `data_list` on line 636 — after CSV was already computed. CSV always contains only header row.
Priority: high
Fixed in PR #51.
Root cause:
DataFrame(data_list).to_csv()was called beforedata_list.append(player_row), so the CSV always contained only the header row.Fix: Moved the
to_csv()call to after theappend()— a single-line swap with no other changes.