This commit is contained in:
2024-12-16 08:57:25 +01:00
3 changed files with 10 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ class ContactModel(QObject):
# print(f"*** File: {__file__}, __init__()")
#self.logger = logging.getLogger()
self.__conf = ConfigLoader().getConfig()
self.__key = self.__conf['pyqcrm']['ENCRYPTION_KEY']
@@ -30,7 +31,9 @@ class ContactModel(QObject):
@Slot(dict)
def addContact(self, contact):
i = ContactDAO().addContact(contact, self.__key)
self.contactIdReady.emit(i)