Filtered customer view - clientele, provider, interested...etc
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user