This commit is contained in:
2024-12-16 08:52:57 +01:00
parent 903a2b8dc1
commit 40d308d965
5 changed files with 42 additions and 15 deletions

View File

@@ -9,8 +9,13 @@ class ContactModel(QObject):
super().__init__()
# print(f"*** File: {__file__}, __init__()")
#self.logger = logging.getLogger()
self.__conf = ConfigLoader().getConfig()
self.__key = self.__conf['pyqcrm']['ENCRYPTION_KEY']
self.__key = ConfigLoader().getKey()
print(f"*** File: {__file__}, __init__()")
self.__data = self.__getData()
def getContacts(self):
@@ -24,6 +29,7 @@ class ContactModel(QObject):
@Slot(dict)
def addContact(self, contact):
i = ContactDAO().addContact(contact, self.__key)
self.contactIdReady.emit(i)