Commit 5bdbbce7 authored by Evenson Jeunesse's avatar Evenson Jeunesse

Update prog.py

parent 05d8ecc3
......@@ -220,7 +220,16 @@ def updateAnimal(idAnimal, nom, dernierPoids, dernierTaille, dateNaissance, espe
print("An error occurs, please try again...")
return False
def updateProprietaire(client_id, animal_id)
def updateProprietaire(client_id, animal_id, new_client_id, new_animal_id) :
sql = "UPDATE Proprietaires SET client={}, animal={} WHERE client={} AND animal={}".format(new_client_id, new_animal_id, client_id, animal_id)
if Execute(sql):
print("Proprietaire updated successfully")
return True
print("An error occurs, please try again...")
return False
def updateMedicament(nomMolecule, effets)
def updateAutorise(medicament_id, espece_id)
def updateTraitement(nom, debut, duree, veterinaire_id, animal_id)
......
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