teslamate-org / teslamate

A self-hosted data logger for your Tesla 🚘
https://docs.teslamate.org
MIT License
6.05k stars 755 forks source link

fix: for drives not showing if duration < 1 minute and feat: add max speed in drives dashboard #4284

Closed swiffer closed 1 month ago

swiffer commented 1 month ago

this is a fix for drives not showing in the drives dashboard if the duration_min is 0.

fallback to diff of end_date - start_date instead to calculate avg_speed.

this brings number of drives in line with drive stats dashboard.

in addition cherry pick changes from #4267

netlify[bot] commented 1 month ago

Deploy Preview for teslamate ready!

Name Link
Latest commit 8ca5cc73efc89d24b546cdf2cc9b8390492c3813
Latest deploy log https://app.netlify.com/sites/teslamate/deploys/6714ac661d0851000892f405
Deploy Preview https://deploy-preview-4284--teslamate.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.