AddCustomer, AddContact finished

This commit is contained in:
2024-12-15 20:44:44 +01:00
parent 59e5fadd26
commit e28c68f643
5 changed files with 31 additions and 12 deletions

View File

@@ -12,9 +12,9 @@ class ContactDAO:
def getContacts(self):
print(f"*** File: {__file__}, getContacts()")
def addContact(self, contact):
def addContact(self, key, contact):
try:
self.__cur.callproc("addContactPerson", (json.dumps(contact),))
self.__cur.callproc("addContactPerson", (key, json.dumps(contact),))
self.__con.commit()
self.__cur.callproc("getLastInsertId")
contact_id = self.__cur.fetchone()