Filtered customer view - clientele, provider, interested...etc

This commit is contained in:
2024-12-11 23:33:59 +01:00
parent 07a3fe6c13
commit e7c9406aa3
6 changed files with 32 additions and 11 deletions

View File

@@ -8,8 +8,8 @@ class BusinessDAO:
self.__con = DbManager().getConnection()
self.__cur = self.__con.cursor()
def getBusiness(self):
self.__cur.callproc("getCustomerView")
def getBusiness(self, criterion = "Alle"):
self.__cur.callproc("getCustomerView", (criterion,))
self.__all_cols = [desc[0] for desc in self.__cur.description]
return self.__cur.fetchall(), self.__all_cols