This commit is contained in:
WorldTeacher
2024-07-30 10:08:41 +02:00
parent 7ea612d9ef
commit f1a33e7ea8
8 changed files with 40 additions and 9 deletions

View File

@@ -40,7 +40,7 @@ class NewEntry(QtWidgets.QDialog, Ui_Dialog):
)
def populateTable(self):
for title in self.titles:
print(title)
# print(title)
entries = self.db.getMediaSimilarSignatureByID(title)
# sort by signature
entries.sort(key=lambda x: x.signature, reverse=True)
@@ -66,7 +66,7 @@ class NewEntry(QtWidgets.QDialog, Ui_Dialog):
signature=signature,
ppn=eval(ppn),
)
print(book)
# print(book)
if not self.db.checkMediaExists(book):
newBookId = self.db.insertMedia(book)
self.newIds.append(newBookId)