This commit is contained in:
2024-12-20 15:40:32 +01:00
parent f39cb0fcaf
commit 1582194753

View File

@@ -20,6 +20,8 @@ class ContactDAO:
self.__con.commit() self.__con.commit()
self.__cur.callproc("getLastInsertId") self.__cur.callproc("getLastInsertId")
contact_id = self.__cur.fetchone() contact_id = self.__cur.fetchone()
self.__cur.callproc("logger",(contact_id[0], "INSERT", "addContactPerson: New Contact added",))
self.__con.commit()
return contact_id[0] return contact_id[0]
else: else:
return None return None