github dannymcc/may v0.22.4

4 hours ago

What's Changed

Features

  • #184Flexible reminder recurrence. Reminders now take a unit (day / week / month / year) plus an integer interval, so you can pick "every 2 years" for a French MOT or "every 3 weeks" for a service check. Form reads as `Every [N] [unit]`. Reminders created on older versions with `quarterly` or `biannual` keep working untouched.

Bug Fixes / EV Improvements

  • #175 — Electric vehicle overview totals were showing £0 because `Vehicle.get_total_cost` summed only fuel + expenses, never charging. Fixed plus broader EV polish:
    • Total cost now includes charging.
    • New `get_average_charging_consumption` (kWh per 100 distance), `get_total_charging_kwh`, `get_cost_per_kwh` — all with proper unit conversion.
    • Vehicle view swaps "Total Fuel Cost" → "Total Charging Cost" and "Avg. Consumption" → "Avg. Charging (kWh / 100 km)" on pure EVs. Plug-in hybrids see both blocks.
    • The Fuel Consumption Trend chart is hidden on pure EVs.
    • Dashboard shows a "Total Charging Cost" card when there's any charging spend.
    • Fuel logs page now includes a "Charging History" section so EV users see their sessions in the same place.

Tests

583 passing (up from 571), including new cross-unit consumption tests and EV stats coverage.

Don't miss a new may release

NewReleases is sending notifications on new releases.