What's Changed
Bug Fixes
- #185 — Trip with empty End Odometer no longer crashes the trips list. (PR #186 by @attiks + follow-up hardening of
get_last_odometer.) - #182 — Save button on the Edit Fuel Log / Edit Expense pages works again. The nested
<form>used for attachment deletion was closing the outer form and orphaning the submit button; replaced with a JS-driven POST helper. - #183 — Quick Fuel Log station picker is reliable across browsers. Switched from
<datalist>to the<select>+ free-text pattern the full fuel form already uses. - #181 — UK MPG / US MPG / L per 100 km consumption figures are now correct regardless of whether the vehicle's odometer is in km or miles. The math previously did not convert distance to the unit each formula expects.
- #173 — Dashboard distance totals respect the requested unit for non-Tessie vehicles (previously the raw odometer delta was returned and mislabelled). CSV exports for vehicles, fuel logs, expenses, and trips now include
odometer_unit/distance_unitcolumns so the data is self-describing. - #168 — Closed; already fixed in v0.22.2 (commit 6e31135).
Dependencies
- pytest >=9.0.3 (PR #176)
- flask-wtf >=1.3.0 (PR #177)
- coverage >=7.13.5 (PR #178)
- python-dotenv >=1.2.2 (PR #179)
- flask >=3.1.3 (PR #180) — includes security fix GHSA-68rp-wp8r-4726
Tests
571 passing (up from 569). New regression coverage for cross-unit consumption, get_total_distance unit conversion, and CSV export headers.