Skip to content

fix: don't show consumption for partial fills (#194)#196

Merged
dannymcc merged 1 commit into
mainfrom
dev
May 21, 2026
Merged

fix: don't show consumption for partial fills (#194)#196
dannymcc merged 1 commit into
mainfrom
dev

Conversation

@dannymcc

Copy link
Copy Markdown
Owner

Summary

Changelog

Bug Fixes

Test plan

  • Full test suite passes (583 passed, 6 xfailed, 1 xpassed)
  • New regression test covers Steve's exact scenario from Fuel log calculations #194
  • Smoke-test on Helios after deploy: confirm Steve's fuel log shows no consumption value on the 20/5 row and a sensible value on the 21/5 row

A partial top-up's litres divided by distance since the last log isn't
consumption — it's just how much was poured in. The number is
arithmetically defined but meaningless, and shares a column with real
L/100km values, so users (#194) reasonably read it as a consumption
figure that has gone wrong.

Return None from FuelLog.get_consumption() for partial fills. The
fill-to-fill calculation on the next full tank already counts the
partial volume over the whole interval (#169), which is what solluh
originally asked for in #122 — the misleading instantaneous estimate
added alongside that fix is the bit being removed.
@dannymcc dannymcc merged commit f43a935 into main May 21, 2026
1 check 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.

Fuel log calculations

1 participant