now added it

This commit is contained in:
2024-12-19 15:20:02 +01:00
parent ba37903a5d
commit 4e378d290c
6 changed files with 37 additions and 2797 deletions

View File

@@ -17,12 +17,15 @@ class BusinessDAO(QObject):
self.__cur = self.__con.cursor()
def getBusiness(self, enc_key, criterion = "Alle"):
if self.__cur:
self.__cur.callproc("getCustomerView", (enc_key, criterion,))
self.__all_cols = [desc[0] for desc in self.__cur.description]
return self.__cur.fetchall(), self.__all_cols
else:
return None, None
try:
if self.__cur:
self.__cur.callproc("getCustomerView", (enc_key, criterion,))
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))
def addBusiness(self, data, contact_id):
try: