**Generate a CSV template the importer accepts** #83

Closed
opened 2026-06-04 12:16:20 +02:00 by umpire274 · 0 comments
umpire274 commented 2026-06-04 12:16:20 +02:00 (Migrated from github.com)

Generate a CSV template the importer accepts

Selecting the new CSV template option writes a file whose sample data has 10 columns (team_name,team_code,league_name,...), but import_csv only accepts 5, 7, or 8 fields in the order team,number,away_number,first_name,last_name,position,pitch,bat. A user who downloads this template and immediately imports it will get Invalid format (expected 5, 7, or 8 fields, got 10) for every data row, so the feature is unusable as a player import template.

Useful? React with 👍 / 👎.

Originally posted by @chatgpt-codex-connector[bot] in https://github.com/umpire274/bs_scoring/pull/82#discussion_r3355186488

**Generate a CSV template the importer accepts** Selecting the new CSV template option writes a file whose sample data has 10 columns (`team_name,team_code,league_name,...`), but `import_csv` only accepts 5, 7, or 8 fields in the order `team,number,away_number,first_name,last_name,position,pitch,bat`. A user who downloads this template and immediately imports it will get `Invalid format (expected 5, 7, or 8 fields, got 10)` for every data row, so the feature is unusable as a player import template. Useful? React with 👍 / 👎. _Originally posted by @chatgpt-codex-connector[bot] in https://github.com/umpire274/bs_scoring/pull/82#discussion_r3355186488_
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
umpire274/bs_scoring#83
No description provided.