Skip to content

Split two-prize sponsor lists into separate tracks - #35

Merged
pradhamk merged 1 commit into
mainfrom
fix/two-prize-tracks
Oct 4, 2026
Merged

pradhamk merged 1 commit into
mainfrom
fix/two-prize-tracks

Conversation

@pradhamk

@pradhamk pradhamk commented Oct 4, 2026

Copy link
Copy Markdown
Member

Summary

  • Devpost writes opted-in sponsor prizes as A, A and B, or A, B, and C. tracks() (app/project.py) only split on , , so a project with exactly two prizes got one merged tag on /judge, like "Figma Best Design and Judged by an LLM".
  • A list with no comma now splits on and. One prize, an empty field, and lists of three or more work as before.
  • In the current M Hacks 2026 export, this fixes 9 of the 45 submitted projects.
  • Caveat: a prize whose own name contains " and " would be split into two tags. None of the 21 prize names in the export do.

Testing

  • Checked tracks() by hand for an empty field, one prize, two prizes, and three prizes.
  • Ran it over the current Devpost export (165 rows, 45 submitted): no project ends up with a merged tag.
  • The repo has no test suite, and ruff isn't installed locally, so lint wasn't run.

🤖 Generated with Claude Code

Devpost joins exactly two opted-in prizes with " and " and no comma, so
tracks() returned them as one merged tag. A comma-free list now splits on
" and "; one prize and three-or-more lists parse as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@pradhamk
pradhamk merged commit b8bff1f into main Oct 4, 2026
1 check passed
@pradhamk
pradhamk deleted the fix/two-prize-tracks branch October 4, 2026 14:49
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