Add Customer/Object/Employee working - DEBUGGING anchor Errors done
This commit is contained in:
@@ -50,15 +50,15 @@ class ContactDAO(QObject):
|
||||
self.newObjectContactAdded.emit(False)
|
||||
|
||||
def getContact(self, contact_id, enc_key = None):
|
||||
# try:
|
||||
# if self.__cur:
|
||||
# self.__cur.callproc("getCustomerContact", (contact_id, enc_key,))
|
||||
# #self.__all_cols = [desc[0] for desc in self.__cur.description]
|
||||
# return self.__cur.fetchall() #, self.__all_cols
|
||||
# else:
|
||||
# return None #, None
|
||||
# except mariadb.Error as e:
|
||||
# print(str(e))
|
||||
pass
|
||||
try:
|
||||
if self.__cur:
|
||||
self.__cur.callproc("getCustomerContact", (contact_id, enc_key,))
|
||||
#self.__all_cols = [desc[0] for desc in self.__cur.description]
|
||||
return self.__cur.fetchall() #, self.__all_cols
|
||||
else:
|
||||
return None #, None
|
||||
except mariadb.Error as e:
|
||||
print(str(e))
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user