Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changelog
Bug Fixes
Test plan