Add auto-detecting header-alias layer (_EXPORT_HEADER_ALIASES) so import_drivers_csv ingests the raw Tracksolid Pro device export (Title-Case headers: IMEI, Driver Name, LicensePlateNo., Model, Vehicle Model, …) in addition to the original snake_case schema-mirror CSV. Add customer_name/device_group to the write set, extend the driver-placeholder skip list (Unassigned/UG/UG Crane), and exclude activation_time/expiration/device_group (date-only/casing churn that would degrade precise API-set values). Used to apply the 260625 telematics quality-check file: 152 devices updated (device_name, driver_name, plate, vehicle type, depot_address). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
4 lines
237 B
Python
4 lines
237 B
Python
# Manual / one-shot operator tools (NOT part of the runtime services).
|
|
# Run from the repo root as a module so `import ts_shared_rev` resolves, e.g.:
|
|
# docker exec ingest_worker python -m tools.sync_driver_audit
|
|
# See tools/README.md.
|