Adjusted display of applicant/employee and optimised the DB
This commit is contained in:
@@ -17,10 +17,10 @@ class EmployeeDAO(QObject):
|
||||
if self.__con:
|
||||
self.__cur = self.__con.cursor()
|
||||
|
||||
def getEmployees(self, enc_key, criterion = "Alle", processed = False, fired = False):
|
||||
def getEmployees(self, enc_key, criterion = "Alle", processed = False, fired = False, every_state = True):
|
||||
try:
|
||||
if self.__cur:
|
||||
self.__cur.callproc("getEmployeeTable", (criterion, processed, fired, enc_key, ))
|
||||
self.__cur.callproc("getEmployeeTable", (criterion, processed, fired, every_state, enc_key, ))
|
||||
self.__all_cols = [desc[0] for desc in self.__cur.description]
|
||||
return self.__cur.fetchall(), self.__all_cols
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user