add to db fix

This commit is contained in:
moerp 2024-01-30 11:30:13 +01:00
parent 4d1399a77e
commit b754bfb836
2 changed files with 6 additions and 6 deletions

12
Run.py
View File

@ -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

Binary file not shown.