diff --git a/Run.py b/Run.py index be878bd..752b1da 100644 --- a/Run.py +++ b/Run.py @@ -125,12 +125,12 @@ def add_lm(): @app.route('/add_nutrition', methods=['POST']) def add_nutrition(): food = request.form.get('food') - kcal = request.form.get('kcal') - ew = request.form.get('ew') - fett = request.form.get('fett') - kh = request.form.get('kh') - bst = request.form.get('bst') - ca = request.form.get('ca') + kcal = float(request.form.get('kcal')) + ew = float(request.form.get('ew')) + fett = float(request.form.get('fett')) + kh = float(request.form.get('kh')) + bst = float(request.form.get('bst')) + ca = float(request.form.get('ca')) print("test") # Verbindung zur Datenbank herstellen und Daten einfügen diff --git a/nutrition.db b/nutrition.db index 8a151e8..2384afc 100644 Binary files a/nutrition.db and b/nutrition.db differ