Logger
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user