add type checking, update deletion function in searchpage, add function to import apparat data from document

This commit is contained in:
2025-04-28 15:31:35 +02:00
parent e6bbc469b1
commit 424411b077
9 changed files with 1262 additions and 186 deletions

View File

@@ -83,7 +83,7 @@ class SearchStatisticPage(QtWidgets.QDialog, Ui_Dialog):
apparats.append(self.tableWidget.item(row.row(), 1).text())
for apparat in apparats:
apparat_id = self.db.getApparatId(apparat)
self.db.restoreApparat(apparat_id)
self.db.restoreApparat(apparat_id, apparat)
# remove the red color from the row
# get row where the apparat is
row = self.tableWidget.findItems(apparat, QtCore.Qt.MatchFlag.MatchExactly)[