Skip to content

Release v0.22.3 — bundled bugfixes#187

Merged
dannymcc merged 13 commits into
mainfrom
dev
May 16, 2026
Merged

Release v0.22.3 — bundled bugfixes#187
dannymcc merged 13 commits into
mainfrom
dev

Conversation

@dannymcc

Copy link
Copy Markdown
Owner

Summary

Bundled bug-fix release covering several user-reported issues plus dev-dependency updates.

Bug Fixes

Other Changes

Tests

  • 571 passing (up from 569). New coverage:
    • cross-unit consumption (km odometer / MPG UK, mi odometer / L per 100 km)
    • get_total_distance unit conversion
    • CSV export contains odometer_unit headers

dependabot Bot and others added 13 commits May 5, 2026 13:32
Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@8.0.0...9.0.3)

---
updated-dependencies:
- dependency-name: pytest
  dependency-version: 9.0.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Updates the requirements on [flask-wtf](https://github.com/pallets-eco/flask-wtf) to permit the latest version.
- [Release notes](https://github.com/pallets-eco/flask-wtf/releases)
- [Changelog](https://github.com/pallets-eco/flask-wtf/blob/main/docs/changes.rst)
- [Commits](pallets-eco/flask-wtf@v1.2.1...v1.3.0)

---
updated-dependencies:
- dependency-name: flask-wtf
  dependency-version: 1.3.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Updates the requirements on [coverage](https://github.com/coveragepy/coveragepy) to permit the latest version.
- [Release notes](https://github.com/coveragepy/coveragepy/releases)
- [Changelog](https://github.com/coveragepy/coveragepy/blob/main/CHANGES.rst)
- [Commits](coveragepy/coveragepy@7.0.0...7.13.5)

---
updated-dependencies:
- dependency-name: coverage
  dependency-version: 7.13.5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Updates the requirements on [python-dotenv](https://github.com/theskumar/python-dotenv) to permit the latest version.
- [Release notes](https://github.com/theskumar/python-dotenv/releases)
- [Changelog](https://github.com/theskumar/python-dotenv/blob/main/CHANGELOG.md)
- [Commits](theskumar/python-dotenv@v1.0.0...v1.2.2)

---
updated-dependencies:
- dependency-name: python-dotenv
  dependency-version: 1.2.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Updates the requirements on [flask](https://github.com/pallets/flask) to permit the latest version.
- [Release notes](https://github.com/pallets/flask/releases)
- [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst)
- [Commits](pallets/flask@3.0.0...3.1.3)

---
updated-dependencies:
- dependency-name: flask
  dependency-version: 3.1.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
bug: Allow empty end odometer for trips
…rsion, export units

- #182: nested <form> for attachment delete was closing the outer form on edit
  pages, orphaning the Save button. Replaced with a JS-driven POST helper that
  builds a hidden form on click — no nesting, full page reload preserves flash
  messages.

- #183: <datalist> on quick fuel log shows a chevron in some browsers but
  doesn't always open. Switched to the same <select> + free-text pattern the
  full fuel form uses, which works consistently.

- #181: consumption math used the raw odometer delta without converting to
  the unit each formula assumes (miles for MPG, km for L/100km). Added a
  shared _distance_in helper and applied it in FuelLog.get_consumption and
  Vehicle.get_average_consumption. Existing tests were encoding the broken
  behaviour, so sample_vehicle now pins odometer_unit='km' for clarity.

- #173: Vehicle.get_total_distance ignored its distance_unit argument for
  non-Tessie vehicles, so the dashboard could label miles as km. Now uses
  _distance_in to convert from the vehicle's effective odometer unit.
  Added odometer_unit / distance_unit columns to the vehicles, fuel_logs,
  expenses and trips CSV exports so the data is self-describing.

- Hardened get_last_odometer to skip trips with NULL end_odometer — follow-up
  to the #185 / PR #186 merge so max() doesn't crash on a freshly-created
  trip without an end odometer.

- Bump APP_VERSION to 0.22.3
….0.3

deps: update pytest requirement from >=8.0.0 to >=9.0.3
…e-1.3.0

deps: update flask-wtf requirement from >=1.2.1 to >=1.3.0
…-7.13.5

deps: update coverage requirement from >=7.0.0 to >=7.13.5
…v-gte-1.2.2

deps: update python-dotenv requirement from >=1.0.0 to >=1.2.2
deps: update flask requirement from >=3.0.0 to >=3.1.3
@dannymcc dannymcc merged commit bb18629 into main May 16, 2026
2 checks passed
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.

Bug: /api/calendar/feed crashes in May 0.22.1 because MaintenanceSchedule.next_due_mileage does not exist

2 participants