fix import av csv

This commit is contained in:
larssand
2026-08-30 16:14:45 +02:00
parent fdc99e64bb
commit 5ed193cdeb
6 changed files with 128 additions and 2 deletions

View File

@@ -286,6 +286,15 @@ The integration test starts its own backend on a temporary localhost port and ne
- import that package into another installation as a new race entry
- JSON export files now include export metadata and a schema version field so future imports can be handled more safely.
- CSV imports from the application's own exports preserve IDs. External lists without IDs first match by transponder and then by name + class. Empty fields do not overwrite existing information, and new class names are created automatically.
- Driver imports only require the `name` column. The recommended minimum is `name;transponder;class`. Optional columns such as `brand`, `spoken_name`, `club`, `country`, and `profile_id` may be omitted; unknown columns are ignored and rows without a name are skipped.
```csv
name;transponder;class;brand;club;country
Anna Andersson;123456;2WD;;JMK;SE
Erik Eriksson;654321;4WD;Associated;;
```
- An empty CSV template can be downloaded directly from the driver import area under `Settings -> Storage`.
- Create a JSON backup before clearing data. Every clear button requires a separate confirmation and cannot be undone.
- Web clearing removes canonical application data but retains the separate raw SQLite `passings` table as an audit log. A physical factory reset of the database must be performed locally on the stopped server, never through an unauthenticated LAN route.