Skip to content
Snippets Groups Projects
Commit 29ea3fbf authored by Adrien Chabod's avatar Adrien Chabod
Browse files

Ajout int

parent 67fbe87c
No related branches found
No related tags found
1 merge request!1MAJ BDD + Data commande fonctionnel
......@@ -97,7 +97,7 @@ def mysql_get_composition_for_machine(commande: tuple):
for k in commande:
cursor.execute("SELECT machine.id_bec FROM ingredient INNER JOIN machine ON ingredient.id_bec = machine.id_bec WHERE ingredient.id_ingredient = %s", (k[1],))
bec=cursor.fetchone()[0]
data.append((bec, k[2]))
data.append((bec, int(k[2])))
cursor.close()
connection.close()
return data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment