Commit fdfeae30 authored by Evenson Jeunesse's avatar Evenson Jeunesse

Update prog.py

parent da9f5959
......@@ -228,10 +228,16 @@ def updateProprietaire(client_id, animal_id, new_client_id, new_animal_id) :
print("An error occurs, please try again...")
return False
def updateAutorise(medicament, espece, new_medicament, new_espece):
sql = "UPDATE Autorise SET medicament='{}', espece='{}' WHERE medicament='{}' AND espece='{}'".format(new_medicament, new_espece, medicament, espece)
if Execute(sql):
print("Autorisation 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)
def updatePrescription(traitement_id, medicament_id, quantite)
def updateAnimal(name)
......
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