Giter VIP home page Giter VIP logo

Comments (5)

alienp4nda avatar alienp4nda commented on July 25, 2024

@AlfHou how would you want to handle this?

It looks like time is ignored in fillups.

const finalFormat = this.me.dateFormat ? this.me.dateFormat : 'MM/dd/yyyy'

Date time.Time `form:"date" json:"date" binding:"required" time_format:"2006-01-02"`

Sorting by odometer doesn't seem to be much of a change. We'd just need to add , odoReading to the Order for each one of these lines that queries for fillups from the database in server/db/dbModels.go.

I haven't tested it out, just what I see from a quick glance.

from hammond.

AlfHou avatar AlfHou commented on July 25, 2024

@alienp4nda I seem to recall having fixed this in the original Hammond project, but seems like the fix didn't work I guess. I think we can try using the time as well to get the correct order.

Here was my original PR: akhilrex#77

from hammond.

alienp4nda avatar alienp4nda commented on July 25, 2024

We can use time, we’ll just have to change front end and backend to actually have time.

from hammond.

vKnmnn avatar vKnmnn commented on July 25, 2024

is it possible that this affects the calculation of L/100km for graph creation?
Out of order entries may cause negative or wrong values.

from hammond.

alienp4nda avatar alienp4nda commented on July 25, 2024

Possibly, I have a fix that I haven't merged yet for the out of order fillups.

from hammond.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.