fix: compute CSV after appending data row in get_one_player (#12) #51

Merged
cal merged 1 commits from ai/paper-dynasty-database-12 into next-release 2026-03-05 03:32:22 +00:00

1 Commits

Author SHA1 Message Date
Cal Corum
0166c7dda4 fix: compute CSV after appending data row in get_one_player (#12)
return_val was assigned from DataFrame(data_list).to_csv() before the
player data row was appended to data_list, so the CSV response contained
only the header row. Moved the to_csv() call to after the append.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-05 03:32:09 +00:00