AddCustomer, AddContact finished
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user