Commit bd5d9944 authored by Evenson Jeunesse's avatar Evenson Jeunesse

Update prog.py

parent 813af480
......@@ -88,7 +88,6 @@ def updateClass(nom, new_nom) :
def updateEspece(classe, nom, new_classe, new_nom):
sql = "UPDATE Especes SET classe='{}', nom='{}' WHERE classe='{}' AND nom='{}';".format(new_classe,new_nom, classe, nom)
print("SQL : "+sql)
if Execute(sql):
print("Espece updated successfully")
return True
......@@ -97,7 +96,6 @@ def updateEspece(classe, nom, new_classe, new_nom):
def updateClient(id, nom, prenom, dateNaissance, adresse, telephone):
sql = "UPDATE Clients SET nom='{}', prenom='{}', date_naissance=TO_DATE('{}', 'YYYY-MM-DD'), adresse='{}', telephone={} WHERE id={}".format( nom, prenom, dateNaissance, adresse, telephone, id)
print("SQL : "+sql)
if Execute(sql):
print("Espece updated successfully")
return True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment