rework prof data gathering
This commit is contained in:
@@ -363,6 +363,8 @@ class SearchStatisticPage(QtWidgets.QDialog, Ui_Dialog):
|
||||
# set the items 0 = clickable checkbox, 1 = appname, 2 = profname, 3 = fach
|
||||
self.tableWidget.setItem(i, 0, QtWidgets.QTableWidgetItem(""))
|
||||
self.tableWidget.setItem(i, 1, QtWidgets.QTableWidgetItem(data[i][1]))
|
||||
#set tooltip for the apparat name
|
||||
self.tableWidget.item(i, 1).setToolTip(data[i][1])
|
||||
self.tableWidget.setItem(i, 2, QtWidgets.QTableWidgetItem(str(data[i][4])))
|
||||
self.tableWidget.setItem(i, 3, QtWidgets.QTableWidgetItem(data[i][2]))
|
||||
self.tableWidget.setItem(i, 4, QtWidgets.QTableWidgetItem(data[i][3]))
|
||||
@@ -430,7 +432,8 @@ class SearchStatisticPage(QtWidgets.QDialog, Ui_Dialog):
|
||||
if parent_depth == 1:
|
||||
# person selected case - open all apparats from this person in the tableWidget
|
||||
self.tableWidget.setRowCount(0)
|
||||
prof_id = self.db.getProfId(apparat.split("(")[0].strip())
|
||||
name = apparat.split("(")[0].strip()
|
||||
prof_id = self.db.getProfId({"profname":name})
|
||||
apparats = self.db.getApparatsByProf(prof_id)
|
||||
for app in apparats:
|
||||
# set the items 0 = clickable checkbox, 1 = appname, 2 = profname, 3 = fach
|
||||
|
||||
Reference in New Issue
Block a user