Oscar jinxed

This commit is contained in:
2024-12-11 15:08:16 +01:00
parent 7c61b2a532
commit 9a8be0409a
6 changed files with 55 additions and 9 deletions

View File

@@ -11,3 +11,15 @@ class ContactDAO:
def getContacts(self):
print(f"*** File: {__file__}, getContacts()")
def addContact(self, contact):
try:
contact_id = self.__cur.callproc("addContactPerson", (contact, 0, ))
self.__con.commit()
return contact_id[1]
#except mariadb.Error as e:
#print(str (e))
except Exception as e:
print(str (e))