Code Monkey home page Code Monkey logo

Comments (7)

itsJash avatar itsJash commented on July 30, 2024 1

@anuj672

There is a validation issue when inputting letters instead of numbers in the enter calories box.

from calorieapp_server.

anuj672 avatar anuj672 commented on July 30, 2024

This does not look like an error FOR SELECT

https://github.com/anuj672/calorieApp_server/blob/main/forms.py#L81

it is misleading and the README setup is missing instructions

There are 4 dbs for unknown reasons, and the one it automatically works on is test DB

So when you run the application next time
try running
python3 insert_food_data.py (this injects data into the db from the CSV file found here
https://github.com/anuj672/calorieApp_server/blob/main/food_data/calories.csv

python3 application.py

from calorieapp_server.

anuj672 avatar anuj672 commented on July 30, 2024

@bhaveshittadwar
@VaibhaviSangawar
@itsJash

what was the burnout issue?

from calorieapp_server.

anuj672 avatar anuj672 commented on July 30, 2024

Thanks @itsJash I am pushing a change which checks if the input is a number, However we need to message on GUI that only number are valid

from calorieapp_server.

anuj672 avatar anuj672 commented on July 30, 2024

change pushed to developement, sorry took 4 commits! need coffee! hahaha will be careful, now the page does not error and does not accept alphabets, but needs some frontend work to display something

from calorieapp_server.

bhaveshittadwar avatar bhaveshittadwar commented on July 30, 2024

We still need to show an error when the user enters anything other than an integer.

from calorieapp_server.

anuj672 avatar anuj672 commented on July 30, 2024

Added 2 validations, which displays messages that it should be a number. I have added it twice -> can be done better. We however are not working for decimals yet! (it does not accept decimals)

closing this task and adding a enhancement task for that!

from calorieapp_server.

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.