1.5 KiB
1.5 KiB
| id | type | title | tags | importance | confidence | created | updated | relations | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 853f145a-3742-4057-8138-2a1ceab0d704 | workflow | PR review: paper-dynasty-database#51 — get_one_player CSV ordering fix |
|
0.4 | 0.8 | 2026-03-04T02:48:43.944119+00:00 | 2026-03-04T02:48:44.365530+00:00 |
|
PR #51: fix: compute CSV after appending data row in get_one_player
Verdict: APPROVED (posted as COMMENT — Gitea blocks self-approval)
File reviewed: app/routers_v2/players.py
Root cause: return_val = DataFrame(data_list).to_csv(...) was called before data_list.append(player_data_row), so the CSV only ever contained the header row.
Fix: Moved to_csv() call to after the data_list.append(...) block. Minimal, correct, single-line reorder.
Notes:
- No security issues
- No test suite in this repo
- Pre-existing style note: using header as first list element +
header=Falseis non-idiomatic pandas, but out of scope - Branch:
ai/paper-dynasty-database-12→next-release