token stuff, 4
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2024-01-31 13:15:03 +01:00
parent e4fe5b9831
commit fd057e3415
Signed by: wn
GPG Key ID: 836E9E1192A6B132

View File

@ -125,7 +125,7 @@ def add_nutrition():
with conn.cursor() as cursor: with conn.cursor() as cursor:
cursor.execute("INSERT INTO nutrition_table (name, kcal, ew, fett, kh, bst, ca) VALUES (%s, %s, %s, %s, %s, %s, %s)", cursor.execute("INSERT INTO nutrition_table (name, kcal, ew, fett, kh, bst, ca) VALUES (%s, %s, %s, %s, %s, %s, %s)",
(food, kcal, ew, fett, kh, bst, ca)) (food, kcal, ew, fett, kh, bst, ca))
conn.commit()
return redirect(url_for('nutrition')) return redirect(url_for('nutrition'))
finally: finally: