token stuff, 4
This commit is contained in:
parent
e4fe5b9831
commit
fd057e3415
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user