Skip to content

Drop blank-header columns instead of rejecting the upload - #32

Merged
pradhamk merged 1 commit into
mainfrom
ignore-blank-headers
Oct 3, 2026
Merged

pradhamk merged 1 commit into
mainfrom
ignore-blank-headers

Conversation

@pradhamk

@pradhamk pradhamk commented Oct 3, 2026

Copy link
Copy Markdown
Member

Summary

Uploading the Devpost export failed with 422 INVALID_COLUMNS, with names: ["", "", "", "", ""]. The file had been opened in a spreadsheet app and saved again. That padded every row, header included, from 34 to 39 columns, leaving 5 blank header cells. The original Devpost download has none.

A column with a blank header has no name to store its values under, so the parser now drops those columns instead of rejecting the file. A header that is only whitespace counts as blank. Duplicate header names are still INVALID_COLUMNS, and so is a file where every header is blank.

Testing

  • The re-saved 39-column export parses to the 34 named columns. Its submitted row keeps its title and main track.
  • That export on its own gets TOO_FEW_ENTITIES, which is correct because it has one submitted project. With a second project added (Devpost stubbed), it uploads, and /pairs returns both with URLs and tracks.
  • Uneven Devpost rows are still padded or trimmed. a,a,b is still rejected with names ["a"], and ,, is rejected.
  • basedpyright passes on app/entity.py.

🤖 Generated with Claude Code

Opening the Devpost export in a spreadsheet app and saving it again pads
every row, header included, with unnamed columns. A column with a blank
header has no name to store its values under, so it is dropped.
Duplicate header names are still rejected.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@pradhamk
pradhamk merged commit ff559dc into main Oct 3, 2026
1 check passed
@pradhamk
pradhamk deleted the ignore-blank-headers branch October 3, 2026 21:18
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