Repository navigation
Drop blank-header columns instead of rejecting the upload - #32
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Uploading the Devpost export failed with
422 INVALID_COLUMNS, withnames: ["", "", "", "", ""]. 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
TOO_FEW_ENTITIES, which is correct because it has one submitted project. With a second project added (Devpost stubbed), it uploads, and/pairsreturns both with URLs and tracks.a,a,bis still rejected with names["a"], and,,is rejected.app/entity.py.🤖 Generated with Claude Code