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

mini patch

parent 7baa752f
No related branches found
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()
......@@ -88,4 +88,4 @@ def unformalize_data_list(initial_data):
sublists = initial_data.split("/")
sublist_data = [x.split(",") for x in sublists]
new_data = [[int(k) for k in x] for x in sublist_data]
return tuple(new_data)
\ No newline at end of file
return tuple(new_data)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment