add to db fix
This commit is contained in:
parent
4d1399a77e
commit
b754bfb836
12
Run.py
12
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
|
||||
|
BIN
nutrition.db
BIN
nutrition.db
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user