Giter VIP home page Giter VIP logo

Comments (5)

cdubz avatar cdubz commented on June 3, 2024 1

Weird. Will look at this soon. In my use I definitely have values > 99 in ingredient amount fields 🤔

from kcal.

TartesDaJulia avatar TartesDaJulia commented on June 3, 2024

Found out editing a food's serving size above 99 leads to a 500 server error, maybe it is connected?

from kcal.

cdubz avatar cdubz commented on June 3, 2024

Ok -- I can indeed reproduce this on the demo. Just not on my own instance of the app. Interesting...

Here's what the full error message looks like --

SQLSTATE[22003]: Numeric value out of range: 7 ERROR: numeric field overflow DETAIL: A field with precision 10, scale 8 must round to an absolute value less than 10^2. (SQL: update "ingredient_amounts" set "amount" = 200, "updated_at" = 2021-11-01 01:50:51 where "id" = 81)

I think I have messed up precision for that field and its just not enforced on SQLite (what my instance uses).

from kcal.

cdubz avatar cdubz commented on June 3, 2024

This is fixed on main -- thanks for reporting!

from kcal.

TheHairyGun avatar TheHairyGun commented on June 3, 2024

Hate to bother, but any chance for this 0.8.1 to be released? I think that I'm running into this as the USDA provides measurements often in portions of 100g.

#55

from kcal.

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.