Skip to content
Snippets Groups Projects
Commit 1e2a76e2 authored by MAUGEZ Emeline's avatar MAUGEZ Emeline
Browse files

mini patch

parent 7baa752f
Branches
No related tags found
1 merge request!1MAJ BDD + Data commande fonctionnel
......@@ -74,7 +74,7 @@ def mysql_get_bec_from_ingredient(id_ingredient):
def mysql_add_ingredient(id_bec, nom_ingredient):
connection = connect_db()
cursor = connection.cursor()
cursor.execute("INSERT INTO ingredient ""(id_bec, non_ingredient) " "VALUES (%s, %s)", (id_bec, nom_ingredient,))
cursor.execute("INSERT INTO ingredient ""(id_bec, nom_ingredient) " "VALUES (%s, %s)", (id_bec, nom_ingredient,))
connection.commit()
cursor.close()
connection.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment