Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for dashboard/updates wrong charge count mapping, fixes adriankumpf/teslamate#991 #1147

Merged
merged 1 commit into from Dec 29, 2020

Conversation

tlj
Copy link
Contributor

@tlj tlj commented Dec 27, 2020

Fix for dashboards/updates to apply number of charges and avg rated range to the correct update.

Previously the join would look for the data from the previous version by getting the data between the previous versions start date and the current one. Changed this to instead look for data between the start date of the version and the next version (or now if current version).

Before:
before

There are no charges on the first version I had on my car, even though Teslamate correctly reports the version as being installed for 1 week before an update. The range increase is also shown for 2020.48.12.1, while I actually got that one on the 2020.48.12 update according to my update logs.

After:
after

This one shows the correct amount of charges both on the first version, and also the version I updated to this morning. While also showing the correct range increase.

@tlj tlj changed the title Fix for dashboard/updates wrong charge count mapping, fixes #991 Fix for dashboard/updates wrong charge count mapping, fixes adriankumpf/teslamate#991 Dec 27, 2020
Copy link
Collaborator

@adriankumpf adriankumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent. Thank you!

@adriankumpf adriankumpf merged commit 5a6a7b5 into teslamate-org:master Dec 29, 2020
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.

None yet

2 participants