Skip to content

Fix ML pass failing to write Historic-Picks table - #153

Merged
nathan-probert merged 2 commits into
mainfrom
fix/historic-picks-write
Nov 10, 2026
Merged

nathan-probert merged 2 commits into
mainfrom
fix/historic-picks-write

Conversation

@nathan-probert

Copy link
Copy Markdown
Owner

Root cause: write_historic_picks_if_missing (a) inserted rows with hard-coded ids 1..N, colliding with the existing primary key, and (b) computed stat but never assigned it to the record (so stat was written as null). Derive the next free id from MAX(id) and assign record['stat'].

@nathan-probert
nathan-probert merged commit 57171f1 into main Nov 10, 2026
6 checks passed
@nathan-probert
nathan-probert deleted the fix/historic-picks-write branch November 10, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant