Commit 351bcfca authored by Xiang Li's avatar Xiang Li

Update deleteClass

parent d9a680d1
......@@ -74,7 +74,17 @@ def updatePrescription(traitement_id, medicament_id, quantite)
def updateAnimal(name)
def deleteEspece(id)
def deleteClass(nom):
sql = "DELETE FROM Classes WHERE nom='{}'".format(nom)
try:
cur.execute(sql)
except pg.Error:
print("Execute Error")
conn.rollback()
return
conn.commit()
print('delete Succes')
def deleteClient(id)
def deletePersonnel(id)
def deleteAnimal(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